Author: dgeraskov
Date: 2010-11-26 08:35:03 -0500 (Fri, 26 Nov 2010)
New Revision: 26975
Modified:
branches/jbosstools-3.2.0.Beta2/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConfigurationFactory.java
Log:
https://jira.jboss.org/browse/JBIDE-7726
Do not run validators by default
Modified:
branches/jbosstools-3.2.0.Beta2/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConfigurationFactory.java
===================================================================
---
branches/jbosstools-3.2.0.Beta2/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConfigurationFactory.java 2010-11-26
13:01:28 UTC (rev 26974)
+++
branches/jbosstools-3.2.0.Beta2/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConfigurationFactory.java 2010-11-26
13:35:03 UTC (rev 26975)
@@ -212,6 +212,9 @@
if (!includeMappings) {
overrides.put("hibernate.archive.autodetection", "none");
//$NON-NLS-1$//$NON-NLS-2$
}
+ if (StringHelper.isEmpty((String)
overrides.get("javax.persistence.validation.mode"))) {//$NON-NLS-1$
+ overrides.put("javax.persistence.validation.mode", "none");
//$NON-NLS-1$//$NON-NLS-2$
+ }
Class<?> clazz = ReflectHelper.classForName(
"org.hibernate.ejb.Ejb3Configuration", ConsoleConfiguration.class);
//$NON-NLS-1$
Object ejb3cfg = clazz.newInstance();