Results 1 to 6 of 6

Thread: Audit Trail for Data Access in Spring

  1. #1
    Join Date
    Aug 2004
    Location
    Hong Kong
    Posts
    18

    Default Audit Trail for Data Access in Spring

    I would like to ask if there is any generic audit trail to the data access in the JDOInterceptor/HibernateInterceptor or in Spring?

    If not, besides the use of the database trigger, anyone has input on the versioning and audit-trial? My idea is to have, say an "AuditInterceptor", to be putting into the TransactionProxyFactoryBean, so that all DAOs will be keeping the version, i.e. before&after image.

    Anyone also face such a case? If yes, could you provide me some solutions or ideas?

    Very thanks.....Welcome for discussion!
    Beginner of Spring!

  2. #2
    Join Date
    Aug 2004
    Location
    A Coruņa, Spain
    Posts
    17

    Default

    Hi,

    I developed a solution using an Spring AOP, it's independant of the persistance mechanism you use.

    You can check it at http://oness.sourceforge.net, what you'd like is in the oness-common-model module.

    Regards

  3. #3
    Join Date
    Aug 2004
    Location
    San Mateo, CA
    Posts
    1,265

    Default

    Carlos

    This is very interesting. I regularly need to deal with temporal data issues for clients, so I'm especially interested in that part of your solution, and look forward to looking at it in detail.

    Rgds
    Rod

  4. #4
    Join Date
    Aug 2004
    Location
    Hong Kong
    Posts
    18

    Default

    Quote Originally Posted by carlos
    I developed a solution using an Spring AOP, it's independant of the persistance mechanism you use.

    You can check it at http://oness.sourceforge.net, what you'd like is in the oness-common-model module.
    Hi, I just have a look to your ONess project. First to say, it is very nice as the common modules implemented in AOP could be used seperately.

    However, I would like to ask for several questions:

    1. I saw that you're now using the "DefaultAdvisorAutoProxyCreator" for the Audit advice. Do you think the Audit advice could be plugged into the ProxyFactoryBean as a normal interceptor?

    2. I can't find the database schema creation scripts of the audit trail columns or even the hibernate mapping file. Does it involve the versioning of a particular data row or just to stamp the last update user and date?

    Thanks....looking forward to getting your reply. :oops:
    Beginner of Spring!

  5. #5
    Join Date
    Aug 2004
    Location
    A Coruņa, Spain
    Posts
    17

    Default

    Quote Originally Posted by dowchen
    Hi, I just have a look to your ONess project. First to say, it is very nice as the common modules implemented in AOP could be used seperately.
    Thanks, I'll reply you here but for further questions about ONess it would be better to use the oness-user mailing list.
    Also after last release I've made major improvements so you'd better check cvs sources (or source xref reports in the web site). A new release will be made by this week.
    Quote Originally Posted by dowchen
    1. I saw that you're now using the "DefaultAdvisorAutoProxyCreator" for the Audit advice. Do you think the Audit advice could be plugged into the ProxyFactoryBean as a normal interceptor?
    Yes, because all my DAOs are auditable, just don't want to lost time defining lots of beans.
    Quote Originally Posted by dowchen
    2. I can't find the database schema creation scripts of the audit trail columns or even the hibernate mapping file. Does it involve the versioning of a particular data row or just to stamp the last update user and date?
    I use xdoclet to generate Hibernate configuration files. The tags are in AbstractBusinessObject I think. Data is versioned, a new record is inserted when updating and delete only marks record as deleted.

  6. #6
    Join Date
    Aug 2004
    Location
    Hong Kong
    Posts
    18

    Default

    Quote Originally Posted by carlos
    Thanks, I'll reply you here but for further questions about ONess it would be better to use the oness-user mailing list.
    Also after last release I've made major improvements so you'd better check cvs sources (or source xref reports in the web site). A new release will be made by this week.
    Thanks for your reply. I like your design on the temporal data handling. I will try to discover more. :oops:
    Beginner of Spring!

Similar Threads

  1. Spring MVC Web Framework versus Struts
    By biguniverse in forum Web Flow
    Replies: 27
    Last Post: Aug 29th, 2012, 03:57 AM
  2. Replies: 14
    Last Post: Apr 25th, 2008, 05:01 AM
  3. Replies: 14
    Last Post: Feb 21st, 2005, 05:41 PM
  4. Replies: 2
    Last Post: Jan 21st, 2005, 04:17 AM
  5. Database Audit Trail Solution for Spring
    By dowchen in forum Data
    Replies: 3
    Last Post: Nov 26th, 2004, 02:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •