-->
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: Issue with outer join in HQL
PostPosted: Wed Jul 13, 2005 4:56 am 
Newbie

Joined: Mon May 30, 2005 4:55 am
Posts: 2
select i.CompanyName from Company i
--> this will return all rows from company

if I include a property of an optional FK, no outer join is generated in the SQL, returning only rows where the FK is filled in:

select i.CompanyName, i.ParentCompany.CompanyName from Company i
--> Only companies with a parent company returned

simular issue as:
http://jira.nhibernate.org/browse/NH-141

I know this can be coded around using an outerjoin in HQL, but we are creating an easy way of displaying data. We would like to keep "from Company" and just specify which properties we want (at runtime, like "i.CompanyName", "i.ParentCompany.CompanyName").

Should this be a bug?

Thanks,
Geert


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.