public boolean mayBeMappedBy(AttributeMapping mapping) { return mapping.getKey() == MappingKeys.ONE_TO_ONE_ATTRIBUTE_MAPPING_KEY; }
protected JavaCollectionMapping2_0 getJavaCollectionMapping() { AttributeMapping javaAttributeMapping = this.getJavaAttributeMapping(); return (javaAttributeMapping.getKey() == this.getKey()) ? (JavaCollectionMapping2_0) javaAttributeMapping : null; }
@Override public boolean isOwnedBy(AttributeMapping mapping) { return mapping.isRelationshipOwner() && this.relationship.isOwnedBy((RelationshipMapping) mapping); }