Questions tagged [auditing]

330 questions
5
votes
1 answer

Auditing with Envers and Hibernate Spatial 4

I'm attempting to use Envers to set up Auditing on my Hibernate entities. However, I'm getting the error: Could not determine type for: geometry, at table: Location_AUD, for columns: [org.hibernate.mapping.Column(geom)] Hibernate is happy with the…
5
votes
4 answers

Audit and data history in java

I have a set of domain objects and its related tables for application's configurations. Authenticated users can change these domain objects data thru a presentation layer. These domain objects have very important data and I need find who and when…
Sam
  • 6,770
  • 7
  • 50
  • 91
4
votes
2 answers

Is there a good framework or library for auditing LDAP/Security management behavior in Java?

I asked a similar question earlier, and this is an extension to it. Basically, we need to have auditable logs for legal reasons of permission/user management and authentication attempts. Our permissions and users are stored in an LDAP service, and…
aperkins
  • 12,914
  • 4
  • 29
  • 34
4
votes
2 answers

Spring Mongo Auditing not working @CreatedDate @CreatedBy

I am using Spring Mongo Auditing and @CreatedDate @CreatedBy not working but @LastModifiedDate and @LastModifiedBy working fine. I added @EnableMongoAuditing on a configuration class and also defined the AuditAware.…
4
votes
1 answer

DDD: Is there an elegant way to pass auditing information through while updating an aggregate root?

Suppose I have a CQRS command that looks like below: public sealed class DoSomethingCommand : IRequest { public Guid Id { get; set; } public Guid UserId { get; set; } public string A { get; set; } public string B { get; set;…
4
votes
0 answers

Spring trying to set audit fields on null object

Spring-data-mongodb is trying to add createdDate to a null object and fails to do so. How do I configure spring audit to ignore null objects so it does not try to add audit fields to it? I have an abstract class with all the audit info. Two classes…
4
votes
1 answer

LocalDateTime and JodaDate conflicts

I'm creating a multi module Maven project using spring MVC, hibernate, Spring Data JPA project. Currently I have integrated an Activiti workflow engine and using Joda date dependency. But my model class use java 8 LocalDateTime. Spring Data JPA…
Sandun Chathuranga
  • 2,242
  • 2
  • 13
  • 27
4
votes
1 answer

Hibernate Envers for Doctrine?

Doctrine 1.x and 2 both offer some kind of Versionable support in the form of a separate auditing table that tracks changes over time. However, the versions appear to be intended for per-row use (ie, they all maintain their own version number)…
Anthony Bishopric
  • 1,306
  • 11
  • 23
4
votes
1 answer

mysql (almost) complete auditing

I'm looking for a way of making simple event log for my tables. I have few tables that can be changed by various users, and I want to keep track on: - who made the change - when - what was before update - what is the new value - which table and…
Shir Gans
  • 1,976
  • 3
  • 23
  • 40
4
votes
1 answer

MappedSuperclass Alternatives in Grails

In many past projects, I used this JPA / Hibernate approach to add auditing capabilities to a system. It's very effective and unobtrusive. Is there a Grails @MappedSuperclass alternative (short of coding domain model objects in Java instead of…
gstathis
  • 4,753
  • 1
  • 17
  • 15
4
votes
3 answers

Spring JPA Auditing empty createdBy

I am using the auditing capabilities of Spring Data and have a class similar to this: @Entity @Audited @EntityListeners(AuditingEntityListener.class) @Table(name="Student") public class Student { @Id @GeneratedValue (strategy =…
Serafeim
  • 14,962
  • 14
  • 91
  • 133
4
votes
1 answer

Trigger not able to initialise variable

I have trigger for auditing, which stored the action performed on any row of EMP table. This trigger works fine, except in some cases (which occurs very rarely, and I cannot identify exact condition) it gives me Oracle Error: ORA-01400: cannot…
Aditya Jain
  • 1,077
  • 1
  • 12
  • 25
4
votes
1 answer

How to change the "Applies To" field under folder auditing options programatically (.NET)

I am trying to set the "Applies To" field under folder auditing options programatically. In MSDN, the code example there uses the FileSystemAuditRule class to add a new audit rule to a folder. There is nothing obvious in this class to set what the…
BrutalDev
  • 6,181
  • 6
  • 58
  • 72
4
votes
2 answers

Oracle audit grant dba role

Running Oracle 11gR1 in an XP SP2 virtual machine. Full disclosure: This is for an assignment. I'm attempting to audit whenever a user is granted the DBA role and fire off an email when the event occurs. I believe the command AUDIT DBA; will audit…
HawatT
  • 41
  • 1
  • 4
4
votes
4 answers

How should I track changes on any object in asp.net mvc (nhibernate)?

I am looking for a good way to track down every change that is made on an object. We are building a custom framework and we need to have a history (kind of) about who changed which object when and maybe also what. What is a good practice in this…
griti
  • 650
  • 8
  • 23
1 2
3
21 22