Package org.hibernate.envers.query.criteria

Examples of org.hibernate.envers.query.criteria.IdentifierEqAuditExpression


    session.beginTransaction();

    AuditReader auditReader = AuditReaderFactory.get(session);
    // List<Number>revisions = auditReader.getRevisions(Book.class, id); // not that useful just returns the revision numbers
   
    AuditQuery query = auditReader.createQuery().forRevisionsOfEntity(Book.class, false, true).add(new IdentifierEqAuditExpression(id, true));
   
    List<Object[]> bookRevisions = query.getResultList();
   
    session.getTransaction().commit();
    return bookRevisions;
View Full Code Here

TOP

Related Classes of org.hibernate.envers.query.criteria.IdentifierEqAuditExpression

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.