-->
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.  [ 4 posts ] 
Author Message
 Post subject: doubt on transitive persistence (chapter 4.3 hib in action)
PostPosted: Fri Jul 22, 2005 6:01 am 
Beginner
Beginner

Joined: Tue Jun 28, 2005 8:51 pm
Posts: 20
Location: Bergamo, Italy
In the examples on the book at pag. 136 is used
session.save(laptops) .

I tried to use session.update(computer)
where computer was a detached object and the result was the same:
the relation is persisted.

What difference there is to save the child or to use (updating it) the persisted object father?


tnk =)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 22, 2005 6:11 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Maybe you want to read it again. There is no explanation I could add.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 22, 2005 6:12 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
There is no difference. You need to understand why, thats the purpose of the section.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 22, 2005 7:38 am 
Beginner
Beginner

Joined: Tue Jun 28, 2005 8:51 pm
Posts: 20
Location: Bergamo, Italy
ok , i' ll try re-read.
be patienent but i ' m italian and read an English book is not so easy so some concepts may flt away...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.