Regular |
|
Joined: Sun Sep 17, 2006 2:48 am Posts: 81 Location: California
|
Hibernate version: 3.2.1
Name and version of the database you are using: MySQL
Can I programatically change the generator class for id of a specific class after loading the configuration from the xml files?
So assuming I have a Test.hbm.xml
<hibernate-mapping>
<class name="TestImpl" table="TESTS">
<id name="id" column="TEST_ID">
<generator class="native"/>
</id>
.
.
.
</class>
</hibernate-mapping>
After loading this configuration, I need to change the generator class from "native" to "assigned" programatically. How can this be acheived?
Thanks
|
|