Interface RelationQueryGenerator
-
- All Known Implementing Classes:
AbstractRelationQueryGenerator,OneAuditEntityQueryGenerator,OneEntityQueryGenerator,ThreeEntityQueryGenerator,TwoEntityOneAuditedQueryGenerator,TwoEntityQueryGenerator
public interface RelationQueryGeneratorImplementations of this interface provide a method to generate queries on a relation table (a table used for mapping relations). The query can select, apart from selecting the content of the relation table, also data of other "related" entities.- Author:
- Adam Warski (adam at warski dot org), Chris Cranford
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.hibernate.query.QuerygetQuery(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object primaryKey, Number revision, boolean removed)Return the query to fetch the relation.
-
-
-
Method Detail
-
getQuery
org.hibernate.query.Query getQuery(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object primaryKey, Number revision, boolean removed)Return the query to fetch the relation.- Parameters:
session- The session.primaryKey- The primary key of the owning object.revision- The revision to be fetched.removed- Whether to return a query that includes the removed audit rows.
-
-