Author: vyemialyanchyk
Date: 2010-02-12 11:14:22 -0500 (Fri, 12 Feb 2010)
New Revision: 20265
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleConfiguration.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5839 - fixed
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleConfiguration.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleConfiguration.java 2010-02-12
15:50:50 UTC (rev 20264)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleConfiguration.java 2010-02-12
16:14:22 UTC (rev 20265)
@@ -323,6 +323,11 @@
Configuration localCfg = cfg;
Properties properties = prefs.getProperties();
+ // 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$
+ }
if(properties!=null) {
// in case the transaction manager is empty then we need to inject a faketm since
hibernate will still try and instantiate it.