Class ToManySelectionPathHandler

java.lang.Object
ch.tocco.nice2.persist.core.impl.hibernate.query.selection.AbstractToManySelectionPathHandler
ch.tocco.nice2.persist.core.impl.hibernate.query.selection.ToManySelectionPathHandler
All Implemented Interfaces:
SelectionPathHandler

public class ToManySelectionPathHandler extends AbstractToManySelectionPathHandler
SelectionPathHandler for all to-many fields (except binaries). This handler does not add anything to the query directly - to-many paths would return multiple rows per result, which would cause issues with pagination. Instead, an additional query is executed to fetch all the to-many values for the results of the primary query. One query is executed per 'path-group' (all fields that belong to the same path).