Thread PrimaryKeyJoinColumn and referencedColumnName support in ENVERS 3.6.8?
PrimaryKeyJoinColumn and referencedColumnName support in ENVERS 3.6.8?We are using validityauditstrategy so when any insert happens for Margin entity below we expect envers to create historical versions for the same in B_HISTORY and then A_HISTORY and then refer the same in MARGIN_HISTO...
Revision_field_name column is not updatedI have created a spring application using Hibernate Envers but when I am trying to save an updated entity, the revision_field_name column is not advancing and Hibernate is trying to insert again the same number in the...
Thread Validity audit strategy with ID reuse = db corruption
Validity audit strategy with ID reuse = db corruptionI've been working on a deployment of Envers for configuration history tracking and have run into a serious bug with the validity audit strategy. We're using increment generators for our entities; this correspo...
Thread @OneToMany make revision at insert but not at update
@OneToMany make revision at insert but not at updateI searched the forum but couldn't find out my similar problem. Here is it : I have an entity Called Person that is the parent of Customer Entity: @Entity @Table(name = "my_person") @TableGenerator(na...
Partial auditing with MappedSuperclassesHi everyone, We're taking our first steps in auditing with Envers, but seem to have hit a dead end. Here's the basic situation: All our entities consist of two parts: one @MappedSuperclass (called <...
Composite Foreign Key AuditingI'm working with a legacy database that uses a composite foreign key to a unique composite key of another table. The tables look like the following: Contract -contractId -playerId -sequenceId ...
Auditing collection of componentsHi, I'm trying to audit an entity which contains a collection of components. I know that auditing @ElementCollection wasn't supported in previous version of hibernate (https://hibernate.atlassian.net/browse/HH...
Thread Can Envers support "going back to a revision" similar to subversion?
Can Envers support "going back to a revision" similar to subversion?Hi, I am absolute new to Envers. My usecase is: I would like to provide "versioning" with my application. Logically when a user creates a "version" all data is duplicated and the user can actually log into this v...
Hibernate Envers with partitioned databaseWe are using a MySQL partitioned db (same schema for each db) and need to audit data by company. (so we have extra company id key in every entity) Some companies have their data on a certain server, others on another...
Thread auto generated pojo from hibernate Persistance
auto generated pojo from hibernate PersistanceHi All, I have persistance.xml contains required classes .Is there any option or command to generate respective pojo. ex <?xml version="1.0" encoding="UTF-8"?> <persistence version=...
Thread getting java.lang.AbstractMethodError: org.jboss.jpa.deployment.PersistenceUnitInfoImpl.getValidationMode()Ljavax/persistence/ValidationMode; while updating hibenate 3.2 to 3.6.0 in eap 5.2
getting java.lang.AbstractMethodError: org.jboss.jpa.deployment.PersistenceUnitInfoImpl.getValidationMode()Ljavax/persistence/ValidationMode; while updating hibenate 3.2 to 3.6.0 in eap 5.2
JBoss eap 6.1 Hibernate 4.2.0 Spring 3Hi Guys I have a problem with this setup. I get the following error. I try a several changes on my configurations but in any cases that work correctly. 10:34:34,312 ERROR [org.hibernate.engine.transa...
Thread RelationTargetAuditMode.NOT_AUDITED to Audited entity
RelationTargetAuditMode.NOT_AUDITED to Audited entityI have two entities, A and B, both of them audited. A has a bidirectional OneToMany-Relation to B. When I call getA() on B I want to get the latest A from the A table (not A_AUD), so I annotate getA() with "@Audited(t...