openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dwo...@apache.org
Subject svn commit: r920426 - /openjpa/branches/1.3.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataSerializer.java
Date Mon, 08 Mar 2010 18:07:40 GMT
Author: dwoods
Date: Mon Mar  8 18:07:39 2010
New Revision: 920426

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

Modified:
    openjpa/branches/1.3.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataSerializer.java

Modified: openjpa/branches/1.3.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataSerializer.java
URL: http://svn.apache.org/viewvc/openjpa/branches/1.3.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataSerializer.java?rev=920426&r1=920425&r2=920426&view=diff
==============================================================================
--- openjpa/branches/1.3.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataSerializer.java
(original)
+++ openjpa/branches/1.3.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataSerializer.java
Mon Mar  8 18:07:39 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