HHH-7521 - JBoss 7 / JPA 2.1 integration work

This commit is contained in:
Steve Ebersole 2012-08-15 13:47:21 -05:00
parent d8651c3ba7
commit 7120b85bbc
2 changed files with 4 additions and 0 deletions

View File

@ -16,6 +16,7 @@
<property name="hibernate.max_fetch_depth">3</property>
<property name="hibernate.hbm2ddl.auto">create-drop</property>
<property name="hibernate.generate_statistics">true</property>
<property name="test-assertable-setting">value</property>
<property name="hibernate.cache.region.factory_class">org.hibernate.testing.cache.CachingRegionFactory</property>
<mapping class="org.hibernate.jpa.test.Item"/>
<mapping class="org.hibernate.jpa.test.Cat"/>

View File

@ -253,6 +253,9 @@ public class PackagedEntityManagerTest extends PackagingTestCase {
addPackageToClasspath( testPackage );
EntityManagerFactory emf = Persistence.createEntityManagerFactory( "cfgxmlpar", new HashMap() );
assertTrue( emf.getProperties().containsKey( "test-assertable-setting" ) );
EntityManager em = emf.createEntityManager();
Item i = new Item();
i.setDescr( "Blah" );