Thanks for the reply. I left out (access=AccessType.FIELD) in the @Entity annotation - I do use that.
I'll try and explain further - it seems that JBoss/Hibernate are generating the correct INSERT statements for the Entities, but it is not propagating the newly created Identity value for the WidgetHolder row to the Widget rows. Using the trace, I see it is properly formatting the inserts, and even adding a "select scope_identity()" to the end of the insert statement to have SQL Server return the newly created ID - however, Hibernate is not using that value in the subsequent INSERT statement for the Widgets. Very frustrating. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3918925#3918925 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3918925 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
