Joined: Fri Jan 05, 2007 5:23 am Posts: 2 Location: Mumbai
|
I am using Mysql database 5.0.
I have generated hbm files using hibernate3.jar and hibernate tools 8beta.
My primary key column for all the tables is of type int with auto_increment.
the generator class created should be of type
<generator class="native">
<param name="sequence">category_seq</param>
</generator>
however the generator class that is getting generated is of type
<generator class="assigned" />
Is there any kind of setting that i need to do in reveng.xml for this.
The task i am using is
<hibernatetool>
<jdbcconfiguration packagename="${hibernate.domain.package.name}" propertyfile="${build.dir}\build.properties" revengfile="${build.dir}\revenge.xml" />
<hbm2hbmxml destdir="${build.temp.dir}" templatepath="${hbm.template.path}" >
<property key="jdk5" value="true"/>
<property key="ejb3" value="false"/>
</hbm2hbmxml>
revenge.xml is
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-reverse-engineering
SYSTEM "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd" >
<hibernate-reverse-engineering>
<type-mapping>
<sql-type jdbc-type="INTEGER"
hibernate-type="java.lang.Integer" />
</type-mapping>
</hibernate-reverse-engineering>
Plese help.
_________________ Thanks & Regards,
Alam Ansari
|
|