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
This commit is contained in:
Donald Woods 2010-03-08 19:20:32 +00:00
parent 97cd88adc3
commit 14996dfd40
1 changed files with 1 additions and 2 deletions

View File

@ -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()));
}