• Is it possible to use part of Envers functionality with Bitemporal tables

    I am using DB2 bitemporal tables. So the history is managed at the database level. I therefore don't need to create revisions from code. However I would like to read the revisions. I am using hibernate to maintain th...
    Profile Photo
    last modified by anupradhan_anupradhan
  • Envers with Database managed History

    I have history managed in the database as we are in migrating the data in stages. Since the database writes to history table, I would like to disable the audit table write. But still be able to use the AuditReader. I...
    Profile Photo
    last modified by anupradhan_anupradhan
  • Please HELP, strange record inserstions with envers

    Hello everyone,   I am facing a critical bug on envers, i think the records are not inserted correctly (please see below). how could a modification have and REVEND = NULL ? (REVTYPE = 1 and REVEND = null) Also...
    Profile Photo
    last modified by meher211
  • QueryException on map associaton when using Envers

    Hi!   I have an existing JEE application (running on Wildfly 10) with about 100 entity-classes where I now want to use Envers to enable versioning of the entity data. Migrating the whole data model to support E...
    Profile Photo
    last modified by ahaumer
  • @Audited(targetAuditMode = RelationTargetAuditMode.NOT_AUDITED) vs @NotAudit

    Hi everyone! I try to audit an entity but I don't want to audit its relationships. If I put @Audited(targetAuditMode = RelationTargetAuditMode.NOT_AUDITED) in @ManyToOne relations, this works and I don't have any exc...
    Profile Photo
    last modified by miborra84
  • Request for example how to use OR or AND for AuditCriterions

    I would like to apply a AuditCriterion as below but am struggling to find an example of how to do this.   OR_criterion1 = (prop[0] like str[0] OR prop[1] like str[0]) OR_criterion2 = (prop[0] like str[1] OR pro...
    Profile Photo
    last modified by mp108
  • Error when loading collection with deleted entities

    Hi everyone,   We are trying to get the full data from an entity and its related entities in a certain date. And the problem is that we get an error when accessing items from a collection that were deleted after...
    Profile Photo
    last modified by jviso
  • Hibernate envers : composite keys

    Hi,   I have encountered an issue while trying to use envers audit features.   Can envers handle composite key ? If yes, from which version ?   i have this error :   Caused by: org.hibernate.p...
    Profile Photo
    last modified by sebbeaume
  • Manually trigger a revision in Envers.

    I'm thinking of leveraging Envers in my application for the following reasons:   1. The application uses JPA 2.1 provided by Hibernate, and the annotations for entities and relationships is understood by Envers ...
    Profile Photo
    last modified by chrisknoll
  • Version Maintenance Based On Row

    I need to maintain versioning for every row of table. Is It possible using hibernate envers.Envers works in a similar way but revision number is incremental in all actions and its database based.
    Profile Photo
    last modified by manojsherkhane
  • Envers FAQ

    This is a community-edited FAQ where you can describe the most common problems you encounter when using Envers and how to solve them. So feel free to edit this document!   Where can I find Envers documentation? ...
    Profile Photo
    last modified by ccranfor
  • version of envers for hibernate 3

    which envers version should we use for hibernate 3?
    Profile Photo
    last modified by onkkr123
  • Audit subclass not persists revtype

    In my project I have an abstract super class and a subclass (Product and SpecialProduct) both are audited, when I persiste, merge or delete SpecialProduct evenrs put a revtype in Product but put null in revtype for Sp...
    Profile Photo
    last modified by cpaqui
  • retro-actively fixing _AUD tables for a database that was populated without envers

    We introduced envers late in the project. This means we have many entities in our db which have not a single revision in their _AUD table.  This causes these queries to fail with  javax.persistence.EntityNot...
    Profile Photo
    last modified by justkeys
  • Finding entity versions up to a revision id

    I have just started looking at Envers as a possible solution for managing versioned configuration data.  It does look like one thing we would need may not have a straightforward solution.   Let's say we hav...
    Profile Photo
    last modified by kenclark
  • Envers + JTA + Oracle

    Hello everyone, It appears i have the following problem...   Requisites: 1. Entity annotated with @Audited 2. Oracle 10g 3. JTA 4. Wildfly 10   To replicate the problem i simply rename one column of t...
    Profile Photo
    last modified by mr.t
  • Unable to deploy EAR with enum type mapped property due a ClassCastException (SerializedType to CustomType)

    I have an issue while deploing an EAR file in glassfish with an enum type property mapped on an entity class.   the problem occurs during deploy process with a simple enum property mapped on an Entity class audi...
    Profile Photo
    last modified by luis22737928
  • Hibernate Envers and JPA Transactions - Unable to create revision because of non-active transaction

    I've been trying to wrap my head around this issue all day.   Currently our project has setup JPATransactionManager to take care of our various session transactions with the use of @Transactional on all services...
    Profile Photo
    last modified by sbeltran
  • How create two database  schemas with Envers Hibernate

    Hello, I need to generate two schema with envers, a schema for tabes _aud and other data of mi app. Thank
    Profile Photo
    last modified by jedaro
  • Efficient load plan for many-to-many when you have large cartesian product

    I have the following relations: Provider(1:m)Campaigns Campaigns(m:m)Locations In few cases each campaign has relation to almost all locations. So in case we have 10K locations (for provider) and 300 campaign (f...
    Profile Photo
    created by avihaimar