Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkmoore2012-02-16 16:54:03 +0000
committerkmoore2012-02-16 16:54:03 +0000
commit135da2bd9d136efc98b8ea04ba03c36e80f35a5a (patch)
tree6a3700a891f62c0b150abdcd1f1236cafa02aca3 /jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa
parent8b329ecade2a594147fdc8c40c0ddc4dc0187308 (diff)
downloadwebtools.dali-135da2bd9d136efc98b8ea04ba03c36e80f35a5a.tar.gz
webtools.dali-135da2bd9d136efc98b8ea04ba03c36e80f35a5a.tar.xz
webtools.dali-135da2bd9d136efc98b8ea04ba03c36e80f35a5a.zip
cleaned up NamedColumn hierarchy isVirtual() and isDefault() as part of an effort to support EclipseLink dynamic persistence - bug 369964
Diffstat (limited to 'jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa')
-rw-r--r--jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/context/java/JavaEntityTests.java4
-rw-r--r--jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/context/java/JavaManyToOneMappingTests.java6
-rw-r--r--jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/context/java/JavaOneToOneMappingTests.java6
-rw-r--r--jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/context/java/JavaPrimaryKeyJoinColumnTests.java6
-rw-r--r--jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/context/java/JavaSecondaryTableTests.java6
-rw-r--r--jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/jpa2/context/java/GenericJavaElementCollectionMapping2_0Tests.java6
-rw-r--r--jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/jpa2/context/java/GenericJavaManyToManyMapping2_0Tests.java6
-rw-r--r--jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/jpa2/context/java/GenericJavaOneToManyMapping2_0Tests.java6
8 files changed, 23 insertions, 23 deletions
diff --git a/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/context/java/JavaEntityTests.java b/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/context/java/JavaEntityTests.java
index 9eab5a6221..d16f3b80ef 100644
--- a/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/context/java/JavaEntityTests.java
+++ b/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/context/java/JavaEntityTests.java
@@ -1654,11 +1654,11 @@ public class JavaEntityTests extends ContextModelTestCase
createTestEntityWithSecondaryTable();
addXmlClassRef(FULLY_QUALIFIED_TYPE_NAME);
- assertTrue(getJavaEntity().getDefaultPrimaryKeyJoinColumn().isDefault());
+ assertTrue(getJavaEntity().getDefaultPrimaryKeyJoinColumn().isVirtual());
getJavaEntity().addSpecifiedPrimaryKeyJoinColumn(0);
PrimaryKeyJoinColumn specifiedPkJoinColumn = getJavaEntity().getSpecifiedPrimaryKeyJoinColumns().iterator().next();
- assertFalse(specifiedPkJoinColumn.isDefault());
+ assertFalse(specifiedPkJoinColumn.isVirtual());
assertNull(getJavaEntity().getDefaultPrimaryKeyJoinColumn());
}
diff --git a/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/context/java/JavaManyToOneMappingTests.java b/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/context/java/JavaManyToOneMappingTests.java
index efacd87b99..792e4730c7 100644
--- a/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/context/java/JavaManyToOneMappingTests.java
+++ b/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/context/java/JavaManyToOneMappingTests.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2011 Oracle. All rights reserved.
+ * Copyright (c) 2007, 2012 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.
@@ -807,11 +807,11 @@ public class JavaManyToOneMappingTests extends ContextModelTestCase
ManyToOneMapping manyToOneMapping = (ManyToOneMapping) persistentAttribute.getMapping();
JoinColumnRelationshipStrategy joinColumns = manyToOneMapping.getRelationship().getJoinColumnStrategy();
- assertTrue(joinColumns.getDefaultJoinColumn().isDefault());
+ assertTrue(joinColumns.getDefaultJoinColumn().isVirtual());
joinColumns.addSpecifiedJoinColumn(0);
JoinColumn specifiedJoinColumn = joinColumns.getSpecifiedJoinColumns().iterator().next();
- assertFalse(specifiedJoinColumn.isDefault());
+ assertFalse(specifiedJoinColumn.isVirtual());
assertNull(joinColumns.getDefaultJoinColumn());
}
diff --git a/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/context/java/JavaOneToOneMappingTests.java b/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/context/java/JavaOneToOneMappingTests.java
index 1182d2e810..b7bb8cfa7f 100644
--- a/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/context/java/JavaOneToOneMappingTests.java
+++ b/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/context/java/JavaOneToOneMappingTests.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2011 Oracle. All rights reserved.
+ * Copyright (c) 2007, 2012 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.
@@ -965,11 +965,11 @@ public class JavaOneToOneMappingTests extends ContextModelTestCase
OneToOneMapping oneToOneMapping = (OneToOneMapping) persistentAttribute.getMapping();
JoinColumnRelationshipStrategy joinColumns = oneToOneMapping.getRelationship().getJoinColumnStrategy();
- assertTrue(joinColumns.getDefaultJoinColumn().isDefault());
+ assertTrue(joinColumns.getDefaultJoinColumn().isVirtual());
joinColumns.addSpecifiedJoinColumn(0);
JoinColumn specifiedJoinColumn = joinColumns.getSpecifiedJoinColumns().iterator().next();
- assertFalse(specifiedJoinColumn.isDefault());
+ assertFalse(specifiedJoinColumn.isVirtual());
assertNull(joinColumns.getDefaultJoinColumn());
}
diff --git a/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/context/java/JavaPrimaryKeyJoinColumnTests.java b/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/context/java/JavaPrimaryKeyJoinColumnTests.java
index ff0501b14d..42290f8735 100644
--- a/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/context/java/JavaPrimaryKeyJoinColumnTests.java
+++ b/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/context/java/JavaPrimaryKeyJoinColumnTests.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2011 Oracle. All rights reserved.
+ * Copyright (c) 2007, 2012 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.
@@ -262,11 +262,11 @@ public class JavaPrimaryKeyJoinColumnTests extends ContextModelTestCase
addXmlClassRef(FULLY_QUALIFIED_TYPE_NAME);
PrimaryKeyJoinColumn specifiedPkJoinColumn = getJavaEntity().getSpecifiedPrimaryKeyJoinColumns().iterator().next();
- assertFalse(specifiedPkJoinColumn.isDefault());
+ assertFalse(specifiedPkJoinColumn.isVirtual());
assertNull(getJavaEntity().getDefaultPrimaryKeyJoinColumn());
getJavaEntity().removeSpecifiedPrimaryKeyJoinColumn(0);
- assertTrue(getJavaEntity().getDefaultPrimaryKeyJoinColumn().isDefault());
+ assertTrue(getJavaEntity().getDefaultPrimaryKeyJoinColumn().isVirtual());
}
public void testIsReferencedColumnResolved() throws Exception {
diff --git a/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/context/java/JavaSecondaryTableTests.java b/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/context/java/JavaSecondaryTableTests.java
index 93238c717c..a6ce6ba34b 100644
--- a/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/context/java/JavaSecondaryTableTests.java
+++ b/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/context/java/JavaSecondaryTableTests.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2011 Oracle. All rights reserved.
+ * Copyright (c) 2007, 2012 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.
@@ -504,11 +504,11 @@ public class JavaSecondaryTableTests extends ContextModelTestCase
addXmlClassRef(FULLY_QUALIFIED_TYPE_NAME);
SecondaryTable secondaryTable = getJavaEntity().getSpecifiedSecondaryTables().iterator().next();
- assertTrue(secondaryTable.getDefaultPrimaryKeyJoinColumn().isDefault());
+ assertTrue(secondaryTable.getDefaultPrimaryKeyJoinColumn().isVirtual());
secondaryTable.addSpecifiedPrimaryKeyJoinColumn(0);
PrimaryKeyJoinColumn specifiedPkJoinColumn = secondaryTable.getSpecifiedPrimaryKeyJoinColumns().iterator().next();
- assertFalse(specifiedPkJoinColumn.isDefault());
+ assertFalse(specifiedPkJoinColumn.isVirtual());
assertNull(secondaryTable.getDefaultPrimaryKeyJoinColumn());
}
diff --git a/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/jpa2/context/java/GenericJavaElementCollectionMapping2_0Tests.java b/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/jpa2/context/java/GenericJavaElementCollectionMapping2_0Tests.java
index aea21aac8c..83afeea0e1 100644
--- a/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/jpa2/context/java/GenericJavaElementCollectionMapping2_0Tests.java
+++ b/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/jpa2/context/java/GenericJavaElementCollectionMapping2_0Tests.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009, 2011 Oracle. All rights reserved.
+ * Copyright (c) 2009, 2012 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.
@@ -2604,11 +2604,11 @@ public class GenericJavaElementCollectionMapping2_0Tests extends Generic2_0Conte
PersistentAttribute persistentAttribute = getJavaPersistentType().getAttributes().iterator().next();
ElementCollectionMapping2_0 elementCollectionMapping = (ElementCollectionMapping2_0) persistentAttribute.getMapping();
- assertTrue(elementCollectionMapping.getDefaultMapKeyJoinColumn().isDefault());
+ assertTrue(elementCollectionMapping.getDefaultMapKeyJoinColumn().isVirtual());
elementCollectionMapping.addSpecifiedMapKeyJoinColumn(0);
JoinColumn specifiedJoinColumn = elementCollectionMapping.getSpecifiedMapKeyJoinColumns().iterator().next();
- assertFalse(specifiedJoinColumn.isDefault());
+ assertFalse(specifiedJoinColumn.isVirtual());
assertNull(elementCollectionMapping.getDefaultMapKeyJoinColumn());
}
diff --git a/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/jpa2/context/java/GenericJavaManyToManyMapping2_0Tests.java b/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/jpa2/context/java/GenericJavaManyToManyMapping2_0Tests.java
index 7abad6b13f..7337b6dc63 100644
--- a/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/jpa2/context/java/GenericJavaManyToManyMapping2_0Tests.java
+++ b/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/jpa2/context/java/GenericJavaManyToManyMapping2_0Tests.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009, 2011 Oracle. All rights reserved.
+ * Copyright (c) 2009, 2012 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.
@@ -1941,11 +1941,11 @@ public class GenericJavaManyToManyMapping2_0Tests
PersistentAttribute persistentAttribute = getJavaPersistentType().getAttributes().iterator().next();
ManyToManyMapping2_0 manyToManyMapping = (ManyToManyMapping2_0) persistentAttribute.getMapping();
- assertTrue(manyToManyMapping.getDefaultMapKeyJoinColumn().isDefault());
+ assertTrue(manyToManyMapping.getDefaultMapKeyJoinColumn().isVirtual());
manyToManyMapping.addSpecifiedMapKeyJoinColumn(0);
JoinColumn specifiedJoinColumn = manyToManyMapping.getSpecifiedMapKeyJoinColumns().iterator().next();
- assertFalse(specifiedJoinColumn.isDefault());
+ assertFalse(specifiedJoinColumn.isVirtual());
assertNull(manyToManyMapping.getDefaultMapKeyJoinColumn());
}
diff --git a/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/jpa2/context/java/GenericJavaOneToManyMapping2_0Tests.java b/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/jpa2/context/java/GenericJavaOneToManyMapping2_0Tests.java
index bf70de9c6a..a194e43ca6 100644
--- a/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/jpa2/context/java/GenericJavaOneToManyMapping2_0Tests.java
+++ b/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/jpa2/context/java/GenericJavaOneToManyMapping2_0Tests.java
@@ -1,5 +1,5 @@
/*******************************************************************************
-* Copyright (c) 2009, 2011 Oracle. All rights reserved.
+* Copyright (c) 2009, 2012 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.
@@ -2202,11 +2202,11 @@ public class GenericJavaOneToManyMapping2_0Tests
PersistentAttribute persistentAttribute = getJavaPersistentType().getAttributes().iterator().next();
OneToManyMapping2_0 oneToManyMapping = (OneToManyMapping2_0) persistentAttribute.getMapping();
- assertTrue(oneToManyMapping.getDefaultMapKeyJoinColumn().isDefault());
+ assertTrue(oneToManyMapping.getDefaultMapKeyJoinColumn().isVirtual());
oneToManyMapping.addSpecifiedMapKeyJoinColumn(0);
JoinColumn specifiedJoinColumn = oneToManyMapping.getSpecifiedMapKeyJoinColumns().iterator().next();
- assertFalse(specifiedJoinColumn.isDefault());
+ assertFalse(specifiedJoinColumn.isVirtual());
assertNull(oneToManyMapping.getDefaultMapKeyJoinColumn());
}

Back to the top