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#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...