Search in sources :

Example 1 with EntityIdentifierDescription

use of org.hibernate.loader.plan.spi.EntityIdentifierDescription in project hibernate-orm by hibernate.

the class AbstractRowReader method resolveEntityKey.

private void resolveEntityKey(ResultSet resultSet, ResultSetProcessingContextImpl context, EntityReferenceInitializer entityReferenceInitializer) throws SQLException {
    final EntityReference entityReference = entityReferenceInitializer.getEntityReference();
    final EntityIdentifierDescription identifierDescription = entityReference.getIdentifierDescription();
    if (identifierDescription.hasFetches() || identifierDescription.hasBidirectionalEntityReferences()) {
        resolveEntityKey(resultSet, context, (FetchSource) identifierDescription);
    }
    entityReferenceInitializer.resolveEntityKey(resultSet, context);
}
Also used : EntityReference(org.hibernate.loader.plan.spi.EntityReference) BidirectionalEntityReference(org.hibernate.loader.plan.spi.BidirectionalEntityReference) EntityIdentifierDescription(org.hibernate.loader.plan.spi.EntityIdentifierDescription)

Aggregations

BidirectionalEntityReference (org.hibernate.loader.plan.spi.BidirectionalEntityReference)1 EntityIdentifierDescription (org.hibernate.loader.plan.spi.EntityIdentifierDescription)1 EntityReference (org.hibernate.loader.plan.spi.EntityReference)1