Is it possible to use the same id generator class for mySQL, SQL Server, DB2 and Oracle?
I've been developing a Hibernate application for the first three databases and have been using
Code:
<generator class=native>
I've now been asked to extend the application to use Oracle and it appears to want
Code:
<generator class=sequence>
From what I've read so far, sequence will work for DB2 but not SQL Server or mySQL.
I am using hbm.xml mapping files and we want to use the same files for all databases.
Thanks in advance.