Sure, it's detached but it's passed to a session bean that calls merge then 
refresh. Refresh does not return an up-to-date instance as merge does; it 
simply sync's the database record with the instance you passed as an argument. 

Insofar as the only difference between the original and the merged entity is 
the version string (notwithstanding triggers that might change state) I assume 
my solution is correct: just transfer the new version number from the merge 
return entity to the original. It just feels icky. 

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

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

Reply via email to