-->
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.  [ 1 post ] 
Author Message
 Post subject: Regarding Lifecycle interface in org.Hibernate.classic
PostPosted: Thu Jun 08, 2006 7:47 am 
Newbie

Joined: Tue May 23, 2006 1:34 am
Posts: 19
Location: Bangalore
I am having a POJO which implements the Lifecycle interface. I overrideen the methods onSave(),onDelete(),onUpdate() and onLoad().

When persisting an object, the onSave() is getting called.
When loading an object, the onLoad() is getting called and
when deleting an object, the onDelete() is also getting called.
But when updating an object, the onUpdate() is not getting called. But the database is getting updated. Why it is? Whether anyone came across the same problem?

for updating the object, the code snippet used by me is:

Code:

    session.update(newObject); or
    session.saveOrUpdate(newObject);

Both are working properly, but the onUpdate() is not getting called.
Any help is appreciated.
Thanx in advance.

_________________
Thanks and Regards,
Suresh Setty...


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

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.