• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

Auditing using Spring JPA Hibernate

Ranch Hand
Posts: 51
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having a tough time implementing the auditing feature in Spring framework using JPA and Hibernate. Earlier the application was in simple JDBC and servlets and we are moving in with Spring and all that latest technology.
Here is the sample problem.
Consider there is a big table called Transactions which store the transaction of a particular Employee. I am having a bean for Transactiion like

And I have an Audit table to store the auditing details.The Audit table has one column IMAGE(BLOB type) in which I am storing the entire object of Transaction.
So the entire detail of a transaction(CRUD) is captured here.
The problem is that this TRANSACTION is a very big table(say having 50 columns) and the user wants to see 5 columns plus it should be also configurable.
Eg: One user can configure to see 5 columns today and 10 columns tomorrow. Earlier we were maintaining a separate table(AUD_CONFIG) to store the column names , a user want to see. Everything was fine till we were using the traditional JDBC but now the project needs to be upgraded to Spring with Hibernate using JPA. Now, I have the entire data in AUDIT table and an object of transaction which has 50 columns but the question is how to display it in a single screen?
somehow ,the user should be able to configure the fields he needs to see in the screen.
So please provide me any help to achieve this solution
Could you hold this kitten for a sec? I need to adjust this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic