jbossas/jboss-as — pull request #580 by scottmarlow (2011-11-07 15:11:14+00:00)
Title: AS7-2433 Fix for Hibernate session is getting closed during JPA transacti

AS7-2433 Fix for Hibernate session is getting closed during JPA transaction by using proxy similar to one used for AS6. use extended persistence context in EntityTestCase so that Hibernate session stays open long enough. The AS6 implementation of the unit test didn't use the Hibernate session for reading entities (http://anonsvn.jboss.org/repos/jbossas/trunk/testsuite/src/main/org/jboss/test/jpa/test/EntityOptimisticLockingUnitTestCase.java + http://anonsvn.jboss.org/repos/jbossas/trunk/testsuite/src/main/org/jboss/test/jpa/entity/ if anyone is interested why we had to use XPC)