Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkmoore2008-04-22 17:48:56 +0000
committerkmoore2008-04-22 17:48:56 +0000
commitc5609d11bb041b85208c5e296d0864167d9a760c (patch)
tree330276e29853bbad74de3caf89f79cdbb26ff7ea
parent1f6c13317fcd9a2a0f6e33cf54b66d4090d81f07 (diff)
downloadwebtools.dali-c5609d11bb041b85208c5e296d0864167d9a760c.tar.gz
webtools.dali-c5609d11bb041b85208c5e296d0864167d9a760c.tar.xz
webtools.dali-c5609d11bb041b85208c5e296d0864167d9a760c.zip
problem with virtual mapping when metadata-complete is true
-rw-r--r--jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/context/orm/GenericOrmPersistentType.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/context/orm/GenericOrmPersistentType.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/context/orm/GenericOrmPersistentType.java
index f9b7705bdd..8f5eccb231 100644
--- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/context/orm/GenericOrmPersistentType.java
+++ b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/context/orm/GenericOrmPersistentType.java
@@ -642,13 +642,13 @@ public class GenericOrmPersistentType extends AbstractOrmJpaContextNode implemen
}
protected OrmPersistentAttribute createVirtualPersistentAttribute(JavaPersistentAttribute javaAttribute) {
- OrmPersistentAttribute ormPersistentAttribute = getJpaFactory().buildOrmPersistentAttribute(this, javaAttribute.getMappingKey());
String javaMappingKey = javaAttribute.getMappingKey();
JavaAttributeMapping javaAttributeMapping = javaAttribute.getMapping();
if (getMapping().isMetadataComplete()) {
javaMappingKey = javaAttribute.getDefaultMappingKey();
javaAttributeMapping = javaAttribute.getDefaultMapping();
}
+ OrmPersistentAttribute ormPersistentAttribute = getJpaFactory().buildOrmPersistentAttribute(this, javaMappingKey);
if (javaMappingKey == MappingKeys.BASIC_ATTRIBUTE_MAPPING_KEY) {
ormPersistentAttribute.initialize(new VirtualXmlBasic(getMapping(), (JavaBasicMapping) javaAttributeMapping, getMapping().isMetadataComplete()));

Back to the top