Java 类org.hibernate.ogm.dialect.spi.AssociationTypeContext 实例源码

项目:hibernate-ogm-redis    文件:RedisJsonDialect.java   
@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;
}
项目:hibernate-ogm-redis    文件:RedisHashDialect.java   
@Override
public boolean isStoredInEntityStructure(
        AssociationKeyMetadata keyMetadata, AssociationTypeContext associationTypeContext) {
    if ( keyMetadata.getAssociationType() == AssociationType.ONE_TO_ONE ) {
        return true;
    }
    return false;
}
项目:hibernate-ogm-redis    文件:RedisJsonDialect.java   
private AssociationStorageType getAssociationStorageType(AssociationTypeContext associationTypeContext) {
    return associationTypeContext.getOptionsContext().getUnique(
            AssociationStorageOption.class
    );
}
项目:hibernate-ogm-ignite    文件:IgniteDialect.java   
@Override
public boolean isStoredInEntityStructure(AssociationKeyMetadata associationKeyMetadata, AssociationTypeContext associationTypeContext) {
    return false;
}
项目:lightblue-hibernate-ogm    文件:LightblueDialect.java   
@Override
public boolean isStoredInEntityStructure(AssociationKeyMetadata associationKeyMetadata, AssociationTypeContext associationTypeContext) {
    return true;
    // TODO figure out
}