Hi -
I have a column other than the primary key which gets populated by a sequence. How do I set up the mapping to do that. In brief,
Code:
<hibernate-mapping>
<class name="test.foo" table="Types">
<id column="ID" name="id" type="java.lang.Integer">
<generator class="sequence">
<param name="sequence">TYPES_SEQ</param>
</generator>
</id>
<property column="ALTERNATE_ID" type="java.lang.Integer" />
</class>
</hibernate-mapping>
Incase I have a sequence called Altermate_Seq, how do I use that for the column Alternate_Id
Thanks-