Author: vyemialyanchyk
Date: 2009-02-20 13:28:12 -0500 (Fri, 20 Feb 2009)
New Revision: 13710
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleConfiguration.java
Log:
JBIDE-3787 revert back till the better solution
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 2009-02-20
17:26:17 UTC (rev 13709)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleConfiguration.java 2009-02-20
18:28:12 UTC (rev 13710)
@@ -290,12 +290,6 @@
}
catch (FileNotFoundException e1) {
throw new
HibernateConsoleRuntimeException(ConsoleMessages.ConsoleConfiguration_could_not_access +
configXMLFile, e1);
- } catch(HibernateException e) {
- boolean cfgXmlNotFound = ( e.getMessage().indexOf("/hibernate.cfg.xml not
found") != -1 ); //$NON-NLS-1$
- if (!cfgXmlNotFound) {
- throw e;
- }
- return localCfg;
}
try {
@@ -340,16 +334,7 @@
if(configXMLFile!=null) {
return localCfg.configure(configXMLFile);
} else {
- Configuration resultCfg = localCfg;
- try {
- resultCfg = localCfg.configure();
- } catch(HibernateException e) {
- boolean cfgXmlNotFound = ( e.getMessage().indexOf("/hibernate.cfg.xml not
found") != -1 ); //$NON-NLS-1$
- if (!cfgXmlNotFound) {
- throw e;
- }
- }
- return resultCfg;
+ return localCfg.configure();
}
}
}
Show replies by date