[jboss-user] [JBossCache] - Re: Exception thrown when calling remove during after-comple
rworsnop
do-not-reply at jboss.com
Tue Mar 13 16:52:10 EDT 2007
By the way, in case it helps, here is the Hibernate code that does the same thing:
SessionFactory factory = new AnnotationConfiguration().configure().buildSessionFactory();
| TransactionManager txManager = DummyTransactionManager.getInstance();
| txManager.begin();
| Session session = factory.getCurrentSession();
| session.createQuery("update C c set c.id = 1").executeUpdate();
| txManager.commit(); // kaboom!!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027692#4027692
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027692
More information about the jboss-user
mailing list