HHH-5916 Make sure to test the property approach for HEM

This commit is contained in:
Emmanuel Bernard 2011-03-15 14:10:07 +01:00
parent 3f2119b913
commit 38e5042cb8
1 changed files with 2 additions and 1 deletions

View File

@ -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();