-->
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.  [ 2 posts ] 
Author Message
 Post subject: getting objects with parshaly filles set
PostPosted: Fri Feb 17, 2006 4:40 pm 
Beginner
Beginner

Joined: Wed Apr 06, 2005 9:29 pm
Posts: 24
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 2.1.7

I have an object factory and factory(s) have employee(s).
I want factory(s) that have employee(s) with a first name 'Bob'.
I can do that no problem, but I only want the 'Bob's in the factory that is returned. Any thoughts?

Thanks
John McPeek


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 19, 2006 7:32 pm 
Expert
Expert

Joined: Thu Dec 23, 2004 9:08 pm
Posts: 2008
For Hibernate2, use returnMaps(). It gets a mention in section 12.4, "Associations", of the ref docs.

If you ever upgrade to Hibernate3, you'll have to change that to use ResultTransformer.


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