openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dwo...@apache.org
Subject svn commit: r920464 - /openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataSerializer.java
Date Mon, 08 Mar 2010 19:20:32 GMT
Author: dwoods
Date: Mon Mar  8 19:20:32 2010
New Revision: 920464

URL: http://svn.apache.org/viewvc?rev=920464&view=rev
Log:
OPENJPA-1360 ReverseMappingTool omits nullable, length, etc. when ClassMapping.setEmbedded(true)
is called

Modified:
    openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataSerializer.java

Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataSerializer.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataSerializer.java?rev=920464&r1=920463&r2=920464&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataSerializer.java
(original)
+++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataSerializer.java
Mon Mar  8 19:20:32 2010
@@ -194,12 +194,11 @@
     /**
      * 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()));
     }



Mime
View raw message