-->
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: Refresh object in lifecycle's callback method
PostPosted: Tue Aug 16, 2005 5:49 am 
Newbie

Joined: Mon Aug 01, 2005 9:58 am
Posts: 3
Hi,
Hibernate version : 2.1.4
Cache : JBoss Tree Cache
Application Server : Jboss 2.3.2

Code snippet: For Object

onUpdate() {
//Do some processing
//Save other object in different session
session.refresh(this)
}

Problem :
After this hibernate updates objects which has cascade none in their mapping file.

Is this expected behaviour or bug ,if yes is it fixed in later version?
Also is the above method of saving objects in callback method safe?

Any pointers will be helpful

Regards
Mukesh


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.