HHH-7521 - JBoss 7 / JPA 2.1 integration work
This commit is contained in:
parent
d8651c3ba7
commit
7120b85bbc
|
@ -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"/>
|
||||
|
|
|
@ -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" );
|
||||
|
|
Loading…
Reference in New Issue