Skip to main content
summaryrefslogtreecommitdiffstats
path: root/jpa
diff options
context:
space:
mode:
authorkmoore2008-08-29 14:12:09 +0000
committerkmoore2008-08-29 14:12:09 +0000
commit8a3b04dfaab2067cbeafe6dc2debf81ba102c357 (patch)
treeb78a355878bc19d0ad08d8e1243afce686b3a483 /jpa
parent6817bb6cfb3cf2eff9513c78848178e06304c452 (diff)
downloadwebtools.dali-8a3b04dfaab2067cbeafe6dc2debf81ba102c357.tar.gz
webtools.dali-8a3b04dfaab2067cbeafe6dc2debf81ba102c357.tar.xz
webtools.dali-8a3b04dfaab2067cbeafe6dc2debf81ba102c357.zip
245682 - add Translator.END_TAG_NO_INDENT so that persistence.xml is formatted better
Diffstat (limited to 'jpa')
-rw-r--r--jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/resource/persistence/translators/MappingFileTranslator.java2
-rw-r--r--jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/resource/persistence/translators/PersistenceUnitTranslator.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/resource/persistence/translators/MappingFileTranslator.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/resource/persistence/translators/MappingFileTranslator.java
index e2144e9272..f6c0c6db8e 100644
--- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/resource/persistence/translators/MappingFileTranslator.java
+++ b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/resource/persistence/translators/MappingFileTranslator.java
@@ -21,7 +21,7 @@ public class MappingFileTranslator extends Translator
public MappingFileTranslator(String domNameAndPath, EStructuralFeature aFeature) {
- super(domNameAndPath, aFeature);
+ super(domNameAndPath, aFeature, Translator.END_TAG_NO_INDENT);
}
@Override
diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/resource/persistence/translators/PersistenceUnitTranslator.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/resource/persistence/translators/PersistenceUnitTranslator.java
index 3bdaae92ef..0d3676f890 100644
--- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/resource/persistence/translators/PersistenceUnitTranslator.java
+++ b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/resource/persistence/translators/PersistenceUnitTranslator.java
@@ -77,11 +77,11 @@ public class PersistenceUnitTranslator extends Translator
}
private Translator createJarFileTranslator() {
- return new Translator(JAR_FILE, PERSISTENCE_PKG.getXmlPersistenceUnit_JarFiles());
+ return new Translator(JAR_FILE, PERSISTENCE_PKG.getXmlPersistenceUnit_JarFiles(), Translator.END_TAG_NO_INDENT);
}
private Translator createClassTranslator() {
- return new JavaClassRefTranslator(CLASS, PERSISTENCE_PKG.getXmlPersistenceUnit_Classes());
+ return new JavaClassRefTranslator(CLASS, PERSISTENCE_PKG.getXmlPersistenceUnit_Classes(), Translator.END_TAG_NO_INDENT);
}
private Translator createExcludeUnlistedClassesTranslator() {

Back to the top