[jboss-user] [EJB 3.0] - Re: EJB Merge doesn't merge existing entities

cretz do-not-reply at jboss.com
Thu Feb 26 16:13:37 EST 2009


A couple of issues I saw:

1. I think @Version should have a column mapping
2. The column for the @Id should be unique = true
3. You should always return the value from merge

Can you debug and guarantee that version and id fields are populated in your object before you call merge? If not, it will do an insert instead of an update...I think.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4213526#4213526

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4213526



More information about the jboss-user mailing list