Class AggregatedAuditExpression

    • Method Detail

      • addToQuery

        public void addToQuery​(org.hibernate.envers.boot.internal.EnversService enversService,
                               org.hibernate.envers.internal.reader.AuditReaderImplementor versionsReader,
                               Map<String,​String> aliasToEntityNameMap,
                               String baseAlias,
                               org.hibernate.envers.internal.tools.query.QueryBuilder qb,
                               org.hibernate.envers.internal.tools.query.Parameters parameters)
        Specified by:
        addToQuery in interface AuditCriterion
      • computeAggregationInInstanceContext

        public AggregatedAuditExpression computeAggregationInInstanceContext()
        Compute aggregated expression in the context of each entity instance separately. Useful for retrieving latest revisions of all entities of a particular type.
        Implementation note: Correlates subquery with the outer query by entity id.
        Returns:
        this (for method chaining).