Author: dgeraskov
Date: 2008-12-17 09:19:13 -0500 (Wed, 17 Dec 2008)
New Revision: 12641
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/HibernateFactory.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-3361
Added new choice '[JPA Project Configured Connection]'.
Validation checks that project is jpa project and that connection profile specified for
it.
Console configuration uses current cp on the build time.
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/HibernateFactory.java
===================================================================
---
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/HibernateFactory.java 2008-12-17
14:19:09 UTC (rev 12640)
+++
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/HibernateFactory.java 2008-12-17
14:19:13 UTC (rev 12641)
@@ -62,8 +62,9 @@
wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME,
jpaProject.getName());
wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_DEFAULT_CLASSPATH, true );
wc.setAttribute(IConsoleConfigurationLaunchConstants.FILE_MAPPINGS,
(List<String>)null);
- wc.setAttribute(IConsoleConfigurationLaunchConstants.CONNECTION_PROFILE_NAME,
connectionProfileName);
-
+ //wc.setAttribute(IConsoleConfigurationLaunchConstants.CONNECTION_PROFILE_NAME,
connectionProfileName);
+ wc.setAttribute(IConsoleConfigurationLaunchConstants.USE_JPA_PROJECT_PROFILE,
"true");//$NON-NLS-1$
+
wc.doSave();
}
}