I can create the hbm's using the existing database, however, during the process it wants to create the sequence using the assigned generator.
I want it to do the following instead:
<id name="id" type="java.lang.Integer" column="id">
<meta attribute="scope-set">protected</meta>
<generator class="sequence">
<param name="sequence">reference.tome_id_sequence</param>
</generator>
</id>
By default it is doing:
<id name="id" type="int">
<column name="id" />
<generator class="assigned" />
</id>
Not sure what to put in the reveng.xml file to make it override the generator tag in ALL hbm's and use that generator class.
If its that I have to use templates, can someone point me to a link that gives a good example of how to use the templating system
Thanks
Thomas
|