Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • 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
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

To display ChangeLog results in peculiar scenario  RSS feed

Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have the tables called,USERROLES and USERROLE_ADT, In my application,User has some set of roles assigned. Administrator can add or delete the roles.

Whenever he modifies the role, we are deleting the all roles and inserting the roles newly(As we can't update the USERROLE table due to some database integrity).

Now i need to display the changelog for the userroles, whenever roles are changed for the user, we need to display those details are in below format

field currentvalue oldvalue changed date change by

role1 active deleted today(dd/mm/yyyy) adminName
role2 deleted active yesterday(dd/mm/yyyy) adminName2

Could any one comeup with Query level or java layer solution..

Nothing? Or something? Like this tiny ad:
how do I do my own kindle-like thing - without amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!