Author: jcosta(a)redhat.com
Date: 2009-04-27 08:10:02 -0400 (Mon, 27 Apr 2009)
New Revision: 16449
Modified:
entitymanager/branches/v3_4_0_GA_CP/src/test/org/hibernate/ejb/test/ejb3configuration/ProgrammaticConfTest.java
Log:
EJB-433 - Added a call to getProperties, to make sure that create-drop is set.
Modified:
entitymanager/branches/v3_4_0_GA_CP/src/test/org/hibernate/ejb/test/ejb3configuration/ProgrammaticConfTest.java
===================================================================
---
entitymanager/branches/v3_4_0_GA_CP/src/test/org/hibernate/ejb/test/ejb3configuration/ProgrammaticConfTest.java 2009-04-27
12:09:49 UTC (rev 16448)
+++
entitymanager/branches/v3_4_0_GA_CP/src/test/org/hibernate/ejb/test/ejb3configuration/ProgrammaticConfTest.java 2009-04-27
12:10:02 UTC (rev 16449)
@@ -24,6 +24,7 @@
Ejb3Configuration conf = new Ejb3Configuration();
conf.addAnnotatedClass( Cat.class );
conf.addAnnotatedClass( Kitten.class );
+ conf.addProperties(getProperties());
EntityManagerFactory emf = conf.buildEntityManagerFactory();
EntityManager em = emf.createEntityManager();
Cat cat = new Cat();
@@ -42,6 +43,7 @@
public void testProgrammaticCfg() throws Exception {
Ejb3Configuration conf = new Ejb3Configuration();
conf.configure( "org/hibernate/ejb/test/ejb3configuration/hibernate.cfg.xml"
);
+ conf.addProperties(getProperties());
EntityManagerFactory emf = conf.buildEntityManagerFactory();
EntityManager em = emf.createEntityManager();
Cat cat = new Cat();
Show replies by date