Hello,
I think I have some understanding problems with UserTransactions, detaching and merging.
Why does the following code don't update the entity?
| UserTransaction ut = sessionContext.getUserTransaction();
| MyEntity a = em.find(MyEntity.class, Long.valueOf(1));
| ut.commit();
|
| ut = sessionContext.getUserTransaction();
| em.merge(a);
| a.setName("FOO2");
| ut.commit();
|
(JBoss-4.0.5.GA)
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986594#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...