[jboss-user] [EJB 3.0] - UserTransactions and merge
klaus_erber
do-not-reply at jboss.com
Thu Nov 16 11:16:33 EST 2006
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#3986594
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986594
More information about the jboss-user
mailing list