Skip to main content
summaryrefslogtreecommitdiffstats
path: root/jpa
diff options
context:
space:
mode:
authortle2008-08-28 01:11:29 +0000
committertle2008-08-28 01:11:29 +0000
commit6d67d06965b840946412a62bdcb8b776ad570f01 (patch)
tree247d307eb98dac253e48cc344aa2f0ecf9793db9 /jpa
parent61d963007f681ce4a1f5572150f0374653e432ac (diff)
downloadwebtools.dali-6d67d06965b840946412a62bdcb8b776ad570f01.tar.gz
webtools.dali-6d67d06965b840946412a62bdcb8b776ad570f01.tar.xz
webtools.dali-6d67d06965b840946412a62bdcb8b776ad570f01.zip
234483 - EclipseLink DDL Gen should override various persistence.xml properties
Diffstat (limited to 'jpa')
-rw-r--r--jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/internal/ddlgen/EclipseLinkDDLGenerator.java24
1 files changed, 21 insertions, 3 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/internal/ddlgen/EclipseLinkDDLGenerator.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/internal/ddlgen/EclipseLinkDDLGenerator.java
index ae0ea778ae..ca81480d50 100644
--- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/internal/ddlgen/EclipseLinkDDLGenerator.java
+++ b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/internal/ddlgen/EclipseLinkDDLGenerator.java
@@ -367,7 +367,7 @@ public class EclipseLinkDDLGenerator
OutputMode.DATABASE);
}
- private void buildLoginProperties(Properties properties) {
+ private void buildConnectionProperties(Properties properties) {
ConnectionProfile cp = this.project.getConnectionProfile();
this.putProperty(properties,
@@ -385,9 +385,18 @@ public class EclipseLinkDDLGenerator
this.putProperty(properties,
Connection.ECLIPSELINK_PASSWORD,
(cp == null) ? "" : cp.getUserPassword());
+ }
+
+ private void buildConnectionPoolingProperties(Properties properties) {
+ this.putProperty(properties,
+ Connection.ECLIPSELINK_READ_CONNECTIONS_SHARED,
+ "true");
+ }
+
+ private void buildLoggingProperties(Properties properties) {
this.putProperty(properties,
Logging.ECLIPSELINK_LEVEL,
- LoggingLevel.FINEST);
+ LoggingLevel.FINE);
this.putProperty(properties,
Logging.ECLIPSELINK_TIMESTAMP,
"false");
@@ -400,6 +409,9 @@ public class EclipseLinkDDLGenerator
this.putProperty(properties,
Logging.ECLIPSELINK_EXCEPTIONS,
"true");
+ }
+
+ private void buildCustomizationProperties(Properties properties) {
this.putProperty(properties,
Customization.ECLIPSELINK_THROW_EXCEPTIONS,
"true");
@@ -412,7 +424,13 @@ public class EclipseLinkDDLGenerator
private void saveLoginProperties(String projectLocation, String propertiesFile) {
Properties elProperties = new Properties();
- this.buildLoginProperties(elProperties);
+ this.buildConnectionProperties(elProperties);
+
+ this.buildConnectionPoolingProperties(elProperties);
+
+ this.buildLoggingProperties(elProperties);
+
+ this.buildCustomizationProperties(elProperties);
this.buildDDLModeProperties(elProperties);

Back to the top