aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSabine Heider2012-09-24 05:24:09 (EDT)
committertware2012-09-25 08:04:10 (EDT)
commit4ee4c5cc98c844ae75847d5cff661b3d79ce8e0d (patch)
tree7d3b7543ec3bce1a30e8231f12067d38ef4a6512
parent3d4600cba6a989d20d4f8449e93479dfcc2fe3ac (diff)
downloadeclipselink.runtime-4ee4c5cc98c844ae75847d5cff661b3d79ce8e0d.zip
eclipselink.runtime-4ee4c5cc98c844ae75847d5cff661b3d79ce8e0d.tar.gz
eclipselink.runtime-4ee4c5cc98c844ae75847d5cff661b3d79ce8e0d.tar.bz2
Fix errors on WebLogic Server introduced by commit a3db955a250961185d00af5254c0663b97570cea
Bug 384129 Signed-off-by: Sabine Heider <sabine.heider@sap.com>
-rw-r--r--foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/internal/databaseaccess/Platform.java2
-rw-r--r--jpa/eclipselink.jpa.test/src/org/eclipse/persistence/testing/tests/jpa/composite/advanced/EntityManagerJUnitTestSuite.java2
2 files changed, 3 insertions, 1 deletions
diff --git a/foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/internal/databaseaccess/Platform.java b/foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/internal/databaseaccess/Platform.java
index be8b9d3..7075c2e 100644
--- a/foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/internal/databaseaccess/Platform.java
+++ b/foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/internal/databaseaccess/Platform.java
@@ -90,6 +90,8 @@ public interface Platform extends Serializable, Cloneable {
public boolean isDBase();
+ public boolean isHANA();
+
public boolean isHSQL();
public boolean isInformix();
diff --git a/jpa/eclipselink.jpa.test/src/org/eclipse/persistence/testing/tests/jpa/composite/advanced/EntityManagerJUnitTestSuite.java b/jpa/eclipselink.jpa.test/src/org/eclipse/persistence/testing/tests/jpa/composite/advanced/EntityManagerJUnitTestSuite.java
index 5e4ab45..e844bde 100644
--- a/jpa/eclipselink.jpa.test/src/org/eclipse/persistence/testing/tests/jpa/composite/advanced/EntityManagerJUnitTestSuite.java
+++ b/jpa/eclipselink.jpa.test/src/org/eclipse/persistence/testing/tests/jpa/composite/advanced/EntityManagerJUnitTestSuite.java
@@ -4819,7 +4819,7 @@ public class EntityManagerJUnitTestSuite extends JUnitTestCase {
+ "Symfoware doesn't support UpdateAll/DeleteAll on multi-table objects (see rfe 298193).");
return;
}
- if ((JUnitTestCase.getServerSession()).getPlatform().isHANA()) {
+ if (getPlatform(Employee.class).isHANA()) {
// HANA currently doesn't support pessimistic locking with queries on multiple tables
// feature is under development (see bug 384129), but test should be skipped for the time being
return;