How can I get the id-generator class name in Hibernate

Discussion in 'Java' started by cowboy129@gmail.com, May 8, 2007.

  1. Guest

    I'm using Hibernate3.2GA
    and I want to get the id generator class name in my program.
    such as a mapping configuraton :
    <class name="beans.Employee" table="Employee">
    <id name="ids" column="Employee_ID" type="int">
    <generator class="native"/>
    </id>
    <property name="name" type="string"/>
    <property name="email" type="string"/>
    <property name="age" type="int"/>
    </class>

    how can I get the value "native" without parsing XML file?
    thanks
     
    , May 8, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ilias Lazaridis
    Replies:
    0
    Views:
    1,772
    Ilias Lazaridis
    Dec 27, 2004
  2. Replies:
    0
    Views:
    3,802
  3. Replies:
    3
    Views:
    8,587
    ducnbyu
    Nov 22, 2006
  4. jstorta
    Replies:
    1
    Views:
    11,846
  5. Eleanna Skouta
    Replies:
    2
    Views:
    8,506
    Arne Vajhøj
    Dec 9, 2008
Loading...

Share This Page