I understand how to declare a auto increment primary key:
Code:
<id name="caseMappingId"
type="java.lang.Long"
column="CASE_MAPPING_ID"
unsaved-value="null"
access="org.hibernate.property.DirectPropertyAccessor">
<generator class="com.ing.common.dao.hbm.util.NativeHiLoGenerator">
<param name="sequence">CASE_MAPPING_ID</param>
<param name="max_lo">1</param>
</generator>
</id>
But how to declare a normal property with auto inicrement?
Code:
<property name="caseId"
column="CASE_ID"
type="java.lang.Long"
update="true"
not-null="true"
access="org.hibernate.property.DirectPropertyAccessor">
</property>
>