-->
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: Why is there no FetchMode.SUBSELECT ?
PostPosted: Wed Sep 19, 2007 6:46 am 
Beginner
Beginner

Joined: Wed Jul 25, 2007 6:32 am
Posts: 22
I have mapped the List of items in my Category.hbm.xml with a fetch="subselect'

This works fine. But I wanted to choose how to fetch items in a Category.
So I removed the fetch="subselect' in Category.hbm.xml and build a Criteria

Why is there no criteria.setFetchMode("items", FetchMode.SUBSELECT) ??

I can only pick a FETCHMODE.SELECT, but then I get (n+1) selects.


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.