Author: vyemialyanchyk
Date: 2008-12-11 08:55:45 -0500 (Thu, 11 Dec 2008)
New Revision: 12547
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleConfiguration.java
Log:
JBIDE-3293
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 2008-12-11
13:31:44 UTC (rev 12546)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleConfiguration.java 2008-12-11
13:55:45 UTC (rev 12547)
@@ -595,6 +595,11 @@
IConnectionProfile profile =
ProfileManager.getInstance().getProfileByName(connectionProfile);
if (profile != null) {
+ // refresh profile (refresh jpa connection):
+ // get fresh information about current db structure and update error markers
+ profile.disconnect();
+ profile.connect(null);
+ //
final Properties invokeProperties = localCfg.getProperties();
// set this property to null!
invokeProperties.remove(Environment.DATASOURCE);
Show replies by date