I'm pretty new to Hibernate and am running into a simple problem:
I have 2 tables user, userattributes. The userattributes table has a foreign key (userid) from the user table. the userid key is specified as a native generator and so is the userattributeid key.
When I create an instance of the DAO and try to invoke the save method on the UserDAO object after propagating the data from my form bean, I am getting the Identity_insert error. It's probably due to the fact that the userattributes object isn't getting the userid from the newly inserted data. Please provide any suggestions.
|