|
From: <hib...@li...> - 2006-03-22 11:00:55
|
Author: ami...@jb...
Date: 2006-03-22 06:00:49 -0500 (Wed, 22 Mar 2006)
New Revision: 9671
Modified:
trunk/Hibernate3/src/org/hibernate/cfg/Environment.java
Log:
Changed hibernate.bytecode.use_reflection_optimizer to Flase by default to fix HHH-227
Modified: trunk/Hibernate3/src/org/hibernate/cfg/Environment.java
===================================================================
--- trunk/Hibernate3/src/org/hibernate/cfg/Environment.java 2006-03-22 06:06:17 UTC (rev 9670)
+++ trunk/Hibernate3/src/org/hibernate/cfg/Environment.java 2006-03-22 11:00:49 UTC (rev 9671)
@@ -416,7 +416,7 @@
*/
public static final String QUERY_SUBSTITUTIONS = "hibernate.query.substitutions";
/**
- * Auto export/update schema using hbm2ddl tool. Valid values are <tt>update</tt>,
+ * Auto export/update schema using hbm2ddl tool. Valid values are <tt>update</tt>,
* <tt>create</tt>, <tt>create-drop</tt> and <tt>validate</tt>.
*/
public static final String HBM2DDL_AUTO = "hibernate.hbm2ddl.auto";
@@ -443,7 +443,7 @@
* The EntityMode in which set the Session opened from the SessionFactory.
*/
public static final String DEFAULT_ENTITY_MODE = "hibernate.default_entity_mode";
-
+
/**
* The jacc context id of the deployment
*/
@@ -482,7 +482,7 @@
newPropertyName = RENAMED_PROPERTIES.get( propertyName );
if ( newPropertyName != null ) {
log.warn( "Property [" + propertyName + "] has been renamed to [" + newPropertyName + "]; update your properties appropriately" );
- if ( ! props.containsKey( newPropertyName ) ) {
+ if ( ! props.containsKey( newPropertyName ) ) {
propertiesToAdd.put( newPropertyName, props.get( propertyName ) );
}
}
@@ -503,7 +503,8 @@
ISOLATION_LEVELS.put( new Integer(Connection.TRANSACTION_SERIALIZABLE), "SERIALIZABLE" );
GLOBAL_PROPERTIES = new Properties();
- GLOBAL_PROPERTIES.setProperty( USE_REFLECTION_OPTIMIZER, Boolean.TRUE.toString() );
+ //Set USE_REFLECTION_OPTIMIZER to false to fix HHH-227
+ GLOBAL_PROPERTIES.setProperty( USE_REFLECTION_OPTIMIZER, Boolean.FALSE.toString() );
try {
InputStream stream = ConfigHelper.getResourceAsStream("/hibernate.properties");
|