aspose file tools*
The moose likes Object Relational Mapping and the fly likes Records not getting updated when PreUpdate listener is used in Hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Records not getting updated when PreUpdate listener is used in Hibernate" Watch "Records not getting updated when PreUpdate listener is used in Hibernate" New topic
Author

Records not getting updated when PreUpdate listener is used in Hibernate

Narendra Kadali
Greenhorn

Joined: Nov 22, 2010
Posts: 5
I am using preupdate event listener concept in my database implemention.

When I am adding listener as below the contenst in DB not getting updated.


When I remove this listener (pre-update), update working fine.

In this pre-update listener i am inserting some records in db like audit records. I am able to insert them. But unable to update the records i want.

Below is the method i am overriding in a class which implements PreUpdateEventListener.


Can any one help me regarding this problem.

Thanks,

Narendra
remyvrs vredestein
Greenhorn

Joined: Feb 11, 2013
Posts: 2
hello
have you solved the problem ?
i got into it myself

thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Records not getting updated when PreUpdate listener is used in Hibernate