-->
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: joins without returning data
PostPosted: Fri Feb 23, 2007 11:18 am 
Newbie

Joined: Fri Feb 23, 2007 11:11 am
Posts: 1
Hi,


I'm thinking of using nhibernate over crud store procedures, is it possible to get a collection of objects from a join query without returning the data for the tables in the join.

e.g. I want orders between dates of abc and def for customers with addresses that have a postcode of xyz

or
select o.* from orders o inner join customers c on o.customerid = c.id inner join address a on c.addressid = address.id where o.orderdate between abc and def and a.postcode = xyz

I don't want to have to load all the customer and address information.


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.