-->
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.  [ 3 posts ] 
Author Message
 Post subject: Fetch and cascade
PostPosted: Sun Jun 29, 2008 7:40 pm 
Newbie

Joined: Tue Jun 17, 2008 11:01 pm
Posts: 16
Hai friends ...

i have a doubt, The use of fetch is necessory to get all the associated object, Am using hibernate 3 , am not using fetch="join"/"select" i just simpley using cascade="all" ,

Without using fetch , when am querying result i getting all the associated objects..

please give me some advice .. thanks to all.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 30, 2008 5:49 am 
Regular
Regular

Joined: Wed Apr 09, 2008 10:28 am
Posts: 52
i'm not sure but the reason could be the default setting which fire's in when not defining any fetch type therefore maybe the default type provides you with the associated objects. it's just a hunch though.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 04, 2008 10:47 am 
Expert
Expert

Joined: Tue May 13, 2008 3:42 pm
Posts: 919
Location: Toronto & Ajax Ontario www.hibernatemadeeasy.com
The JavaDoc for the CascadeType annotation might be useful to you:

http://www.hibernate.org/hib_docs/annotations/api/org/hibernate/annotations/CascadeType.html

_________________
Cameron McKenzie - Author of "Hibernate Made Easy" and "What is WebSphere?"
http://www.TheBookOnHibernate.com Check out my 'easy to follow' Hibernate & JPA Tutorials


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