I have been trying to solve this one for a while. What is the correct approach for inserting into a table using Hibernate and ColdFusion 10 and Oracle 11g? Nothing seems to work. I have tried almost everything in the documentation.
Here is the code that I have:
property name="ID" column="ID"
type="numeric"
ormtype="double"
fieldtype="id"
generator="native";
After much looking around and testing this is the solution that I found which works in Oracle 11g and ColdFusion 10 on Solaris. I simply need to change the ormtype="double" to ormtype="int" I handled the sequence by doing this. generator="sequence" sequence="sequencename" Here is the code.
property name="ID" column="ID" type="numeric" ormtype="int" fieldtype="id" generator="sequence" sequence="sequencename";