-->
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 ALL PROPERTIES" using Criteria ?
PostPosted: Fri Dec 02, 2005 1:42 pm 
Newbie

Joined: Tue Nov 22, 2005 11:57 am
Posts: 5
How do I "FETCH ALL PROPERTIES" using a Criteria query?

Is it possible?

It's neiter in the manual nor in the API docs.
Apidoc says:

Criteria.setFetchMode(String associationPath, FetchMode mode)
"Specify an association fetching strategy for a one-to-many, many-to-one or one-to-one association, or for a collection of values."

(Nothing about lazy properties.)

cheers,
spunky


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 02, 2005 3:30 pm 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
load(Customer.class, 1) gets all the value type properties for customer 1 . setFetchMode("orders", FethMode.Eager) will get all of the value type properties of each order. you have observed hibernate behave differently?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 02, 2005 8:25 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
No, he's right, there is no equivalent of "fetch all properties" in load() or criteria.

Add a feature request to JIRA.


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.