Author: vyemialyanchyk
Date: 2010-03-18 16:08:31 -0400 (Thu, 18 Mar 2010)
New Revision: 20917
Added:
branches/hibernatetools-multiversion/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/
Modified:
branches/hibernatetools-multiversion/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/HibernateJpaProject.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-6070 - update
Copied:
branches/hibernatetools-multiversion/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core
(from rev 20855, trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core)
Modified:
branches/hibernatetools-multiversion/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/HibernateJpaProject.java
===================================================================
---
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/HibernateJpaProject.java 2010-03-16
18:50:31 UTC (rev 20855)
+++
branches/hibernatetools-multiversion/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/HibernateJpaProject.java 2010-03-18
20:08:31 UTC (rev 20917)
@@ -16,10 +16,10 @@
import org.eclipse.core.runtime.preferences.IScopeContext;
import org.eclipse.jpt.core.JpaProject;
import org.eclipse.jpt.core.internal.AbstractJpaProject;
-import org.hibernate.cfg.Configuration;
import org.hibernate.cfg.NamingStrategy;
import org.hibernate.console.ConsoleConfiguration;
import org.hibernate.console.KnownConfigurations;
+import org.hibernate.console.stubs.ConfigurationStub;
import org.hibernate.eclipse.console.properties.HibernatePropertiesConstants;
import org.osgi.service.prefs.Preferences;
@@ -41,8 +41,11 @@
if (ccName != null || "".equals(ccName)){//$NON-NLS-1$
ConsoleConfiguration cc = KnownConfigurations.getInstance().find(ccName);
if (cc != null){
+ // vitali TODO: here we use Configuration only to get NamingStrategy
+ // so NamingStrategy is a key class for org.jboss.tools.hibernate.jpt.core plugin
+ // Configuration - wrong use here!!!
if (cc.getConfiguration() != null){
- Configuration config = cc.getConfiguration();
+ ConfigurationStub config = cc.getConfiguration();
return config.getNamingStrategy();
}
}