Author: vyemialyanchyk
Date: 2010-02-09 09:44:22 -0500 (Tue, 09 Feb 2010)
New Revision: 20202
Modified:
branches/hibernatetools-switch-to-hibernate-core-3.3/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/OpenMappingUtils.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5816 - build configuration if it is null
Modified:
branches/hibernatetools-switch-to-hibernate-core-3.3/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/OpenMappingUtils.java
===================================================================
---
branches/hibernatetools-switch-to-hibernate-core-3.3/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/OpenMappingUtils.java 2010-02-09
14:43:56 UTC (rev 20201)
+++
branches/hibernatetools-switch-to-hibernate-core-3.3/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/OpenMappingUtils.java 2010-02-09
14:44:22 UTC (rev 20202)
@@ -449,6 +449,10 @@
return file;
}
java.io.File configXMLFile = consoleConfig.getConfigXMLFile();
+ if (!consoleConfig.hasConfiguration()) {
+ consoleConfig.build();
+ consoleConfig.buildSessionFactory();
+ }
EntityResolver entityResolver = consoleConfig.getConfiguration().getEntityResolver();
Document doc = getDocument(configXMLFile, entityResolver);
if (doc == null) {