-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: @PostLoad is not getting triggered.
PostPosted: Thu Mar 08, 2012 6:35 am 
Newbie

Joined: Wed Feb 01, 2012 8:31 am
Posts: 5
Hi,
I have created an event listener class and add that class as event listener in my domain object. And in event listener I have two functions marked @PrePersist and @PostLoad. @PrePersist is getting triggered when I persist new entity. But @PostLoad is not getting invoked when retrieving entity. My application is spring 3 with JPA and Hibernate. We are using Spring data jpa for Repository implementation.

Thanks,
Ramesh


Top
 Profile  
 
 Post subject: Re: @PostLoad is not getting triggered.
PostPosted: Thu Mar 08, 2012 8:21 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
First off, this is the wrong forum. This belongs to the Hibernate Users forum. In case you are asking the same question there, I recommend that you include your configuration and versions of the different pieces of software you are using. Also any information from the log which could be helpful.

--Hardy


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.