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

C

cowboy129

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top