Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting only required value when we use event.geetOldState()  RSS feed

Narendra Kadali
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am using Hibernate 3 as my persistence framework.
Below is the sample hbm file I am using.

I am added a post-update listener. What it will do is if there any updations perfomed on User then it will be invoked and cahnges will be inserted to audit table.

Below is the sample implementation for postupdate event.

Here is my requirement.

must return attribute names or value which i can update or insert.

Is there any way to control the return values of above one's.

Pleas help me on this regard.


With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!