From 38e5042cb8ba7d3af16bc7f96729c109b5a6c10b Mon Sep 17 00:00:00 2001 From: Emmanuel Bernard Date: Tue, 15 Mar 2011 14:10:07 +0100 Subject: [PATCH] HHH-5916 Make sure to test the property approach for HEM --- .../ejb/test/ejb3configuration/PersisterClassProviderTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hibernate-entitymanager/src/test/java/org/hibernate/ejb/test/ejb3configuration/PersisterClassProviderTest.java b/hibernate-entitymanager/src/test/java/org/hibernate/ejb/test/ejb3configuration/PersisterClassProviderTest.java index a3935788a1..ac267a4094 100644 --- a/hibernate-entitymanager/src/test/java/org/hibernate/ejb/test/ejb3configuration/PersisterClassProviderTest.java +++ b/hibernate-entitymanager/src/test/java/org/hibernate/ejb/test/ejb3configuration/PersisterClassProviderTest.java @@ -34,6 +34,7 @@ import org.hibernate.LockOptions; import org.hibernate.MappingException; import org.hibernate.cache.access.EntityRegionAccessStrategy; import org.hibernate.cache.entry.CacheEntryStructure; +import org.hibernate.ejb.AvailableSettings; import org.hibernate.ejb.Ejb3Configuration; import org.hibernate.engine.CascadeStyle; import org.hibernate.engine.SessionFactoryImplementor; @@ -54,7 +55,7 @@ import org.hibernate.type.VersionType; public class PersisterClassProviderTest extends junit.framework.TestCase { public void testPersisterClassProvider() { Ejb3Configuration conf = new Ejb3Configuration(); - conf.setPersisterClassProvider( new GoofyPersisterClassProvider() ); + conf.setProperty( AvailableSettings.PERSISTER_CLASS_PROVIDER, GoofyPersisterClassProvider.class.getName() ); conf.addAnnotatedClass( Bell.class ); try { final EntityManagerFactory entityManagerFactory = conf.buildEntityManagerFactory();