mirror of https://github.com/apache/openjpa.git
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:
parent
97cd88adc3
commit
14996dfd40
|
@ -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()));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue