Author: vyemialyanchyk
Date: 2010-02-12 11:57:16 -0500 (Fri, 12 Feb 2010)
New Revision: 20267
Modified:
branches/jbosstools-3.1.0.RC2/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleConfiguration.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5839 - fixed
Modified:
branches/jbosstools-3.1.0.RC2/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleConfiguration.java
===================================================================
---
branches/jbosstools-3.1.0.RC2/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleConfiguration.java 2010-02-12
16:33:52 UTC (rev 20266)
+++
branches/jbosstools-3.1.0.RC2/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleConfiguration.java 2010-02-12
16:57:16 UTC (rev 20267)
@@ -325,6 +325,11 @@
Properties properties = prefs.getProperties();
if(properties!=null) {
+ // to fix: JBIDE-5839 - setup this property: false is default value
+ // to make hibernate tools diff hibernate versions compatible
+ if (properties.getProperty("hibernate.search.autoregister_listeners") ==
null) { //$NON-NLS-1$
+ properties.setProperty("hibernate.search.autoregister_listeners",
"false"); //$NON-NLS-1$ //$NON-NLS-2$
+ }
// in case the transaction manager is empty then we need to inject a faketm since
hibernate will still try and instantiate it.
String str = properties.getProperty(
"hibernate.transaction.manager_lookup_class" ); //$NON-NLS-1$
if(str != null && StringHelper.isEmpty( str )) {