mmesh wrote:
Hibernate version:
2.1.3
But for a mapping file for entity foo, the table foo does not have a corresponding sequence generated. Nor are the generated ids identities. Wheres the logic for this generation?
In fact there is a sequence generated termed 'hibernate_sequence'!
We recently shifted to Postgres from Mckoi. We used a third party utility Dbunit to migrate all our data. The shift was smooth but now we cant create new entities with postgres simply because the sequences were not migrated :-( and Mckoi used a mechanism called uniquekey(sequencename) to generate ids and postgres uses nextval(sequencename). Is there a way in which i can seamlessly sync up the two sequence values?
--
Megha