I’m using 6.6 GA. I know it’s up-to-date at home, but here at work, I have trouble connecting to get updates. At any rate…
I’m reverse engineering with MySql. My key fields are auto increment. When I do the reverse engineering, it always generates
<hibernate-mapping>
<class name=”com.lmco.chassis.hibernate.User” table=”user” catalog=”test”>
<id name=”id” type=”java.lang.Integer”>
<column name=”id” />
<generator class=”identy” />
</id>
<property name=”username” type=”java.lang.String”>
<column name=”username” length=”64″ not-null=”true” />
</property>
… and I have to change it to…
<hibernate-mapping>
<class name=”com.lmco.chassis.hibernate.User” table=”user” catalog=”test”>
<id name=”id” type=”java.lang.Integer”>
<column name=”id” />
<generator class=”increment” />
</id>
<property name=”username” type=”java.lang.String”>
<column name=”username” length=”64″ not-null=”true” />
</property>
… in order to input (save) a record.
Isn’t there a generation script somewhere that can be changed to make this insert “increment” instead of “identity?”