-->
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: How to fetch collection based on conditions
PostPosted: Mon Sep 17, 2007 4:30 am 
Newbie

Joined: Thu Aug 30, 2007 4:02 am
Posts: 2
Consider this example

There is a Class called Department ( Department has a Set of Sections )

Department has Sections ( Sections has Set of Students )

And Sections has Students. ( Students has properties has name)

Now I want to retrieve a Department where student has a name eg section.student.name = "Sam"


when I retrieve the Department , it should contain Sections which again should contain students with Name as "Sam"

The problem is when I retrieve Department , it retrieves all the sections , even though no student named "Sam" exist in that section.

Can anybody help me in this regard.


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.