Author: epbernard
Date: 2009-08-13 16:15:08 -0400 (Thu, 13 Aug 2009)
New Revision: 17301
Modified:
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/EntityManagerFactoryImpl.java
Log:
add property to disable metamodel generation, just in case as it's undertested
Modified:
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/EntityManagerFactoryImpl.java
===================================================================
---
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/EntityManagerFactoryImpl.java 2009-08-13
19:30:57 UTC (rev 17300)
+++
core/trunk/entitymanager/src/main/java/org/hibernate/ejb/EntityManagerFactoryImpl.java 2009-08-13
20:15:08 UTC (rev 17301)
@@ -65,7 +65,13 @@
this.sessionInterceptorClass = sessionInterceptorClass;
@SuppressWarnings( "unchecked" )
final Iterator<PersistentClass> classes = cfg.getClassMappings();
- this.metamodel = new MetamodelImpl( classes );
+ //a safe guard till we are confident that metamodel is wll tested
+ if ( !"disabled".equalsIgnoreCase( cfg.getProperty(
"hibernate.ejb.metamodel.generation" ) ) ) {
+ this.metamodel = new MetamodelImpl( classes );
+ }
+ else {
+ this.metamodel = null;
+ }
this.criteriaQueryBuilder = new QueryBuilderImpl( this );
}
Show replies by date