I need to merge changes an entity instance multiple times. The second merge 
causes an optimistic lock failure unless I "manually" update the version string:

original.setVersion( em.merge( original ).getVersion() );

I cannot use the updated entity returned from merge because I have many 
reference to the original instance in several lists. 

Calling em.refresh( original ) after em.merge( original ) did NOT update the 
@Version column.  Why doesn't refresh update the version column?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966189
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to