Log in to follow, share, and participate in this community.
Thread JBoss eap 6.1 Hibernate 4.2.0 Spring 3
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...
Envers Audit annotation is not workingHi, I'm using envers-1.2.2.ga-hibernate-3.3 with hibernate 3.3.1-GA. All my Entity classes are mapped using hbm file, I just trying to audit one of my entity field with @Audited. eg...
Thread No version records created when using JTA transaction manage
No version records created when using JTA transaction manageDoes envers work with a JTA transaction manager? I'm using Spring 2.5.5 and JBoss 4.2.2.GA, and when I use the Hibernate 3 transaction manager, envers versioning records are created, but when I use the JTA transaction...
Thread Hibernate envers data not getting inserted in audit tables
Hibernate envers data not getting inserted in audit tablesI am facing similar problem. I am using Spring 3.1, Spring data jpa 1.2 with Hibernate 3.5.1 and envers 3.5.1. The issue is when using envers my _AUD table is getting created but the data is not inserte...
Thread How to enable/disable audit on a single property at runtime?
How to enable/disable audit on a single property at runtime?Hello, I need to implement a feature that requires turning audit on/off for single properties at runtime. In other words, I'd like to simulate adding/deleting @NotAudited annotation for entity fields. I assum...
Audit Table Primary Key IssuesGreetings! I am having an issue where the audit table being automatically generated through Envers collects unnecessary columns into the primary key and I was hoping for some advice regarding how we might overco...
Envers & Oracle & ORA-00942 errorhi all, i want to enable auditing on my Oracle database, using Envers. But it fires the following exception. WARNING: SQL Error: 942, SQLState: 42000 SEVERE: ORA-00942: table or view does not exist ...
Thread auditing many to many relationship with extra columns
auditing many to many relationship with extra columnsHi, I've created a ManyToMany relationship with extra columns and it works fine. But when I try to add Envers, the following error appears. I'm using Hibernate + Envers 3.6.10 {code:java}Initial SessionFactor...
Thread ObjectNotFoundException when merging entity
ObjectNotFoundException when merging entityI am having an issue when merging an Entity object that has a set of EntityLinks that represent a many to many mapping. I'm getting a ObjectNotFoundException: No row with the given identifier exists: [EntityLink...
Thread Check if entity was loaded from envers-tables or not?
Check if entity was loaded from envers-tables or not?Hi, Is there a way to check if a instance was loaded from the envers tables or from the "normal" tables? In case of using the AuditReader, I may wrap the results into other objects, but what about entities th...
ValidityAuditStrategy with no audit recordHi! I changed to ValidityAuditStrategy but I'm having a issue. If I try to persist a new entity that have a N:1 relationship with it the ValidityAuditStrategy throw an exception: Caused by: java...
Handle related entity not found gracefullyHi With Envers 4.1.6, currently when querying audit data, if the related entity is not found, Envers will throw such exception: @Audited
class Employee {
private Integer id;
private Compan...
null pointer exceptionHi All, I have one doubt in handling exception Please follow the code private static void loadProdpriceAttrs(StatefulKnowledgeSession workingMemory, long id) &...
Pending revisions with enversHI everybody, i was wondering if there's a way to mark a revision as still-in-pending, that is it must be validated before becoming active. What i'm trying to develop is a system where users propose a revision for ...
Support "in" expression for AuditRelatedIdHi Thanks for Envers, we save a lot of effort on implementing our audit feature. Now I am working on searching audit data and realise that it's hard to search revisions based on relation condition. For example...