Hi all,
I am working on a project with Hibernate 3.5.6, in which we have two kinds of insert: 1. dump some legacy data into mySQL with object id. 2. insert data with auto-generated id. The deprecated save(Object object, Serializable id) allows me to achieve exactly what I want, but it is deprecated. I have tried to use 'native', 'increment' for generator, but they only work for auto generated id. Removing the generator would allow the insertion with id to work, but the other ding of insert would fail.
Please give me some suggestion on how I can work around this, thank you.
|