I am using Hibernate 2.1.2 with SAPDB 7.4.
The following is a sample mapping.
Code:
<hibernate-mapping>
<class name="com.foo.bar.beans.site.Instruction" table="INSTRUCTIONS" dynamic-update="false" dynamic-insert="false">
<id name="instructionId" column="INSTRUCTIONID" type="java.lang.Long" unsaved-value="null">
<generator class="sequence">
<param name="instructionId">SEQ_INSTRUCTIONID</param>
</generator>
</id>
</class>
</hibernate-mapping>
I must be missing something really obvious here because the SEQ_INSTRUCTIONID is not getting used in the database. Instead, there is a HIBERNATE_SEQUENCE that is in the database and is being incremented for inserting Instruction objects. The same is true for all my other objects. I have a different sequence specified in each mapping but all of them are using the HIBERNATE_SEQUENCE.