Author: vyemialyanchyk
Date: 2010-03-18 15:50:56 -0400 (Thu, 18 Mar 2010)
New Revision: 20914
Added:
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.mapper/
Modified:
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/editors/ReverseEngineeringEditor.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-6070 - update
Copied:
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.mapper
(from rev 20798, trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper)
Modified:
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/editors/ReverseEngineeringEditor.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/editors/ReverseEngineeringEditor.java 2010-03-12
13:16:53 UTC (rev 20798)
+++
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/editors/ReverseEngineeringEditor.java 2010-03-18
19:50:56 UTC (rev 20914)
@@ -37,7 +37,6 @@
import org.eclipse.wst.xml.core.internal.provisional.IXMLPreferenceNames;
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument;
import org.hibernate.HibernateException;
-import org.hibernate.cfg.Configuration;
import org.hibernate.cfg.Settings;
import org.hibernate.cfg.reveng.DefaultReverseEngineeringStrategy;
import org.hibernate.cfg.reveng.OverrideRepository;
@@ -199,9 +198,7 @@
}
ITableFilter[] tableFilters = getReverseEngineeringDefinition().getTableFilters();
- Configuration cfg = configuration.buildWith(null, false);
- Settings settings = configuration.getSettings(cfg);
-
+ Settings settings = configuration.getSettings2();
OverrideRepository repository = new
OverrideRepository();///*settings.getDefaultCatalogName(),settings.getDefaultSchemaName()*/);
boolean hasIncludes = false;
for (int i = 0; i < tableFilters.length; i++) {