Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/jpa2_1/context/persistence/SchemaGenerationTarget.java')
-rw-r--r--jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/jpa2_1/context/persistence/SchemaGenerationTarget.java35
1 files changed, 35 insertions, 0 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/jpa2_1/context/persistence/SchemaGenerationTarget.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/jpa2_1/context/persistence/SchemaGenerationTarget.java
new file mode 100644
index 0000000000..488bd75d84
--- /dev/null
+++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/jpa2_1/context/persistence/SchemaGenerationTarget.java
@@ -0,0 +1,35 @@
+/*******************************************************************************
+ * Copyright (c) 2013 Oracle. All rights reserved.
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0, which accompanies this distribution
+ * and is available at http://www.eclipse.org/legal/epl-v10.html.
+ *
+ * Contributors:
+ * Oracle - initial API and implementation
+ ******************************************************************************/
+package org.eclipse.jpt.jpa.core.jpa2_1.context.persistence;
+
+import org.eclipse.jpt.jpa.core.context.persistence.PersistenceXmlEnumValue;
+
+/**
+ * SchemaGenerationSource
+ */
+public enum SchemaGenerationTarget implements PersistenceXmlEnumValue {
+ metadata("metadata"), //$NON-NLS-1$
+ script("script"), //$NON-NLS-1$
+ metadata_then_script("metadata-then-script"), //$NON-NLS-1$
+ script_then_metadata("script-then-metadata"); //$NON-NLS-1$
+
+ private final String propertyValue;
+
+ SchemaGenerationTarget(String propertyValue) {
+ this.propertyValue = propertyValue;
+ }
+
+ /**
+ * The string used as the property value in the persistence.xml
+ */
+ public String getPropertyValue() {
+ return this.propertyValue;
+ }
+} \ No newline at end of file

Back to the top