Your code is telling Hibernate to auto-generate both ids.
Are you setting the id manually, after Hibernate assigns it?
anonymous wrote : [Microsoft][SQLServer 2000 Driver for
JDBC][SQLServer]'last_insert_id' is not a recognized function name.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053110#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...