From 14996dfd406d3f59d6d106ca9f89faf753b18eea Mon Sep 17 00:00:00 2001 From: Donald Woods Date: Mon, 8 Mar 2010 19:20:32 +0000 Subject: [PATCH] OPENJPA-1360 ReverseMappingTool omits nullable, length, etc. when ClassMapping.setEmbedded(true) is called git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@920464 13f79535-47bb-0310-9956-ffa450edef68 --- .../persistence/AnnotationPersistenceMetaDataSerializer.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataSerializer.java b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataSerializer.java index 5e0b9d2ed..d27742eac 100644 --- a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataSerializer.java +++ b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataSerializer.java @@ -194,12 +194,11 @@ public class AnnotationPersistenceMetaDataSerializer /** * Convenience method for interpreting {@link #getMode}. Takes into * account whether mapping information is loaded for the given instance. + * OPENJPA-1360 - Allow @Column attributes when meta.isEmbeddedOnly() */ protected boolean isMappingMode(ClassMetaData meta) { return isMappingMode() && (meta.getSourceMode() & MetaDataModes.MODE_MAPPING) != 0 - && (meta.getEmbeddingMetaData() != null - || !meta.isEmbeddedOnly()) && (meta.getEmbeddingMetaData() == null || isMappingMode(meta.getEmbeddingMetaData())); }