@Override public boolean isStoredInEntityStructure( AssociationKeyMetadata keyMetadata, AssociationTypeContext associationTypeContext) { AssociationStorageType associationStorage = getAssociationStorageType( associationTypeContext ); if ( keyMetadata.getAssociationType() == AssociationType.ONE_TO_ONE || keyMetadata.getAssociationKind() == AssociationKind.EMBEDDED_COLLECTION || associationStorage == AssociationStorageType.IN_ENTITY ) { return true; } return false; }
@Override public boolean isStoredInEntityStructure( AssociationKeyMetadata keyMetadata, AssociationTypeContext associationTypeContext) { if ( keyMetadata.getAssociationType() == AssociationType.ONE_TO_ONE ) { return true; } return false; }
private AssociationStorageType getAssociationStorageType(AssociationTypeContext associationTypeContext) { return associationTypeContext.getOptionsContext().getUnique( AssociationStorageOption.class ); }
@Override public boolean isStoredInEntityStructure(AssociationKeyMetadata associationKeyMetadata, AssociationTypeContext associationTypeContext) { return false; }
@Override public boolean isStoredInEntityStructure(AssociationKeyMetadata associationKeyMetadata, AssociationTypeContext associationTypeContext) { return true; // TODO figure out }