Hi Max,
I have done the update and now the result file looks like this:
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated Jan 24, 2007 1:02:58 PM by Hibernate Tools 3.2.0.b9 -->
<hibernate-mapping>
<class name="com.myCompany.business.model.AppUserRole" table="APP_USER_ROLE">
<id name="appUserRoleId" type="java.lang.Long">
<column name="APP_USER_ROLE_ID" precision="22" scale="0" />
<generator class="assigned" />
</id>
.....
</class>
</hibernate-mapping>
Still no luck with using the settings in the reveng.xml to change the generator to sequence.
Code:
<table schema="JACOB" name="APP_USER_ROLE">
<primary-key>
<generator class="sequence">
<param name="table">APP_USER_ROLE_SEQ</param>
</generator>
<key-column name="APP_USER_ROLE_ID"/>
</primary-key>
<foreign-key constraint-name="FK_APP_USER_APP_USER_ROLE">
<many-to-one property="AppUser" exclude="true" />
</foreign-key>
</table>
The key-column I tried both <key-column name="APP_USER_ROLE_ID"/> and <key-column name="AppUserRoleId"/>
but the result is still the same as above... any suggestions?
Cheers,
Jacob