aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSabine Heider2013-02-22 06:46:01 (EST)
committertware2013-02-27 13:14:11 (EST)
commit6845686e2e1c9737c44066f2d56384030caa9905 (patch)
tree198ceec2542a719dd525aeaf2db68e6b64884b3c
parent8e15437c4268aef22ce136aeceb0fa996296d392 (diff)
downloadeclipselink.runtime-6845686e2e1c9737c44066f2d56384030caa9905.zip
eclipselink.runtime-6845686e2e1c9737c44066f2d56384030caa9905.tar.gz
eclipselink.runtime-6845686e2e1c9737c44066f2d56384030caa9905.tar.bz2
Introduce target database property value "HANA" for SAP HANA Database
It should be possible to specify the HANAPlatform in the persistence unit properties by setting the property "eclipselink.target-database" to "HANA". Bug 401509 Signed-off-by: Sabine Heider <sabine.heider@sap.com>
-rw-r--r--foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/config/TargetDatabase.java1
-rw-r--r--foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/internal/sessions/PropertiesHandler.java1
2 files changed, 2 insertions, 0 deletions
diff --git a/foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/config/TargetDatabase.java b/foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/config/TargetDatabase.java
index d88c20c..8ccd876 100644
--- a/foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/config/TargetDatabase.java
+++ b/foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/config/TargetDatabase.java
@@ -35,6 +35,7 @@ public class TargetDatabase {
public static final String DB2Mainframe = "DB2Mainframe";
public static final String DBase = "DBase";
public static final String Derby = "Derby";
+ public static final String HANA = "HANA";
public static final String HSQL = "HSQL";
public static final String Informix = "Informix";
public static final String JavaDB = "JavaDB";
diff --git a/foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/internal/sessions/PropertiesHandler.java b/foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/internal/sessions/PropertiesHandler.java
index 1a6b756..f46530c 100644
--- a/foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/internal/sessions/PropertiesHandler.java
+++ b/foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/internal/sessions/PropertiesHandler.java
@@ -512,6 +512,7 @@ public class PropertiesHandler {
{TargetDatabase.DB2, pcg + "DB2Platform"},
{TargetDatabase.DBase, pcg + "DBasePlatform"},
{TargetDatabase.Derby, pcg + "DerbyPlatform"},
+ {TargetDatabase.HANA, pcg + "HANAPlatform"},
{TargetDatabase.HSQL, pcg + "HSQLPlatform"},
{TargetDatabase.Informix, pcg + "InformixPlatform"},
{TargetDatabase.JavaDB, pcg + "JavaDBPlatform"},