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: @PrePersist / @PreUpdate not firing
PostPosted: Wed Jul 28, 2010 6:00 pm 
Newbie

Joined: Sun Jun 27, 2010 5:05 pm
Posts: 3
Hello,

I've seen similar posts around these forums, but haven't found the answer. I'm attempting to get @PrePersist / @PreUpdate working with Hibernate entities, but they never fire. Is this possible? I've seen other people get it working with EntityManager, but I'm using AnnotationConfiguration.

annotationConfiguration.addAnnotatedClass(com.example.entity.User.class);

Cheers, Marc.


Top
 Profile  
 
 Post subject: Re: @PrePersist / @PreUpdate not firing
PostPosted: Thu Jul 29, 2010 11:12 am 
Newbie

Joined: Thu Jul 29, 2010 11:08 am
Posts: 1
Can you show us your code?


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.