Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkmoore2012-02-17 14:18:30 +0000
committerkmoore2012-02-17 14:18:30 +0000
commitaab9ed5c4b22281fabe3bab824aca72ac99ae900 (patch)
tree5290c5a0293d040f2db7f775fdf12519a3bc823d /jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa
parent089992eab928674f5d310f5ae462f68e78cda36e (diff)
downloadwebtools.dali-aab9ed5c4b22281fabe3bab824aca72ac99ae900.tar.gz
webtools.dali-aab9ed5c4b22281fabe3bab824aca72ac99ae900.tar.xz
webtools.dali-aab9ed5c4b22281fabe3bab824aca72ac99ae900.zip
bug 369964 - dynamic persistence support - rename ORM persistent type 'virtuals' to 'defaults'
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/jpa2/context/java/GenericJavaManyToOneMapping2_0Tests.java4
-rw-r--r--jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/jpa2/context/java/GenericJavaOneToOneMapping2_0Tests.java4
-rw-r--r--jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/jpa2/context/orm/GenericOrmEntity2_0Tests.java14
3 files changed, 11 insertions, 11 deletions
diff --git a/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/jpa2/context/java/GenericJavaManyToOneMapping2_0Tests.java b/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/jpa2/context/java/GenericJavaManyToOneMapping2_0Tests.java
index 8d38365920..20189d9a68 100644
--- a/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/jpa2/context/java/GenericJavaManyToOneMapping2_0Tests.java
+++ b/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/jpa2/context/java/GenericJavaManyToOneMapping2_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.
@@ -128,7 +128,7 @@ public class GenericJavaManyToOneMapping2_0Tests
});
OrmPersistentType ormPersistentType = getEntityMappings().addPersistentType(MappingKeys.ENTITY_TYPE_MAPPING_KEY, FULLY_QUALIFIED_TYPE_NAME);
for (OrmReadOnlyPersistentAttribute each : ormPersistentType.getAttributes()) {
- each.convertToSpecified();
+ each.addToXml();
}
}
diff --git a/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/jpa2/context/java/GenericJavaOneToOneMapping2_0Tests.java b/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/jpa2/context/java/GenericJavaOneToOneMapping2_0Tests.java
index bd18b5f42f..ebb5d7cb16 100644
--- a/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/jpa2/context/java/GenericJavaOneToOneMapping2_0Tests.java
+++ b/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/jpa2/context/java/GenericJavaOneToOneMapping2_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.
@@ -140,7 +140,7 @@ public class GenericJavaOneToOneMapping2_0Tests
});
OrmPersistentType ormPersistentType = getEntityMappings().addPersistentType(MappingKeys.ENTITY_TYPE_MAPPING_KEY, FULLY_QUALIFIED_TYPE_NAME);
for (OrmReadOnlyPersistentAttribute each : ormPersistentType.getAttributes()) {
- each.convertToSpecified();
+ each.addToXml();
}
}
diff --git a/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/jpa2/context/orm/GenericOrmEntity2_0Tests.java b/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/jpa2/context/orm/GenericOrmEntity2_0Tests.java
index 559fef408e..e6955b98a1 100644
--- a/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/jpa2/context/orm/GenericOrmEntity2_0Tests.java
+++ b/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/jpa2/context/orm/GenericOrmEntity2_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.
@@ -734,7 +734,7 @@ public class GenericOrmEntity2_0Tests extends Generic2_0ContextModelTestCase
OrmMappedSuperclass mappedSuperclass = (OrmMappedSuperclass) ormEntity.getPersistentType().getSuperPersistentType().getMapping();
- mappedSuperclass.getPersistentType().getAttributeNamed("id").convertToSpecified();
+ mappedSuperclass.getPersistentType().getAttributeNamed("id").addToXml();
BasicMapping idMapping = (BasicMapping) mappedSuperclass.getPersistentType().getAttributeNamed("id").getMapping();
idMapping.getColumn().setSpecifiedName("FOO");
idMapping.getColumn().setSpecifiedTable("BAR");
@@ -780,7 +780,7 @@ public class GenericOrmEntity2_0Tests extends Generic2_0ContextModelTestCase
OrmEntity superclass = (OrmEntity) ormEntity.getParentEntity();
- superclass.getPersistentType().getAttributeNamed("id").convertToSpecified();
+ superclass.getPersistentType().getAttributeNamed("id").addToXml();
BasicMapping idMapping = (BasicMapping) superclass.getPersistentType().getAttributeNamed("id").getMapping();
idMapping.getColumn().setSpecifiedName("FOO");
idMapping.getColumn().setSpecifiedTable("BAR");
@@ -1586,7 +1586,7 @@ public class GenericOrmEntity2_0Tests extends Generic2_0ContextModelTestCase
assertEquals(0, virtualAttributeOverride.getColumn().getScale());
- zipCodePersistentType.getAttributeNamed("plusfour").convertToSpecified();
+ zipCodePersistentType.getAttributeNamed("plusfour").addToXml();
BasicMapping plusFourMapping = (BasicMapping) zipCodePersistentType.getAttributeNamed("plusfour").getMapping();
plusFourMapping.getColumn().setSpecifiedName("BLAH");
plusFourMapping.getColumn().setSpecifiedTable("BLAH_TABLE");
@@ -1615,7 +1615,7 @@ public class GenericOrmEntity2_0Tests extends Generic2_0ContextModelTestCase
assertEquals(7, virtualAttributeOverride.getColumn().getScale());
//set an attribute override on Address.zipCode embedded mapping
- addressPersistentType.getAttributeNamed("zipCode").convertToSpecified();
+ addressPersistentType.getAttributeNamed("zipCode").addToXml();
OrmAttributeOverride specifiedAttributeOverride = ((OrmVirtualAttributeOverride) ((OrmEmbeddedMapping) addressPersistentType.getAttributeNamed("zipCode").getMapping()).getAttributeOverrideContainer().getOverrideNamed("plusfour")).convertToSpecified();
specifiedAttributeOverride.getColumn().setSpecifiedName("BLAH_OVERRIDE");
specifiedAttributeOverride.getColumn().setSpecifiedTable("BLAH_TABLE_OVERRIDE");
@@ -1694,7 +1694,7 @@ public class GenericOrmEntity2_0Tests extends Generic2_0ContextModelTestCase
assertEquals(0, virtualAttributeOverride.getColumn().getScale());
- zipCodePersistentType.getAttributeNamed("plusfour").convertToSpecified();
+ zipCodePersistentType.getAttributeNamed("plusfour").addToXml();
BasicMapping plusFourMapping = (BasicMapping) zipCodePersistentType.getAttributeNamed("plusfour").getMapping();
plusFourMapping.getColumn().setSpecifiedName("BLAH");
plusFourMapping.getColumn().setSpecifiedTable("BLAH_TABLE");
@@ -1723,7 +1723,7 @@ public class GenericOrmEntity2_0Tests extends Generic2_0ContextModelTestCase
assertEquals(7, virtualAttributeOverride.getColumn().getScale());
//set an attribute override on Address.zipCode embedded mapping
- addressPersistentType.getAttributeNamed("zipCode").convertToSpecified();
+ addressPersistentType.getAttributeNamed("zipCode").addToXml();
OrmAttributeOverride specifiedAttributeOverride = ((OrmVirtualAttributeOverride) ((OrmEmbeddedMapping) addressPersistentType.getAttributeNamed("zipCode").getMapping()).getAttributeOverrideContainer().getOverrideNamed("plusfour")).convertToSpecified();
specifiedAttributeOverride.getColumn().setSpecifiedName("BLAH_OVERRIDE");
specifiedAttributeOverride.getColumn().setSpecifiedTable("BLAH_TABLE_OVERRIDE");

Back to the top