-->
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: Joins without mapped associations
PostPosted: Fri Apr 27, 2007 10:30 am 
Newbie

Joined: Sun Jan 14, 2007 2:52 pm
Posts: 19
I am trying to create either Criteria or HQL where I skip an association but having problems find out if it is possible.

Say I have table A which has a one to many with B. B contains a foreign key that is also in C. But no mapping is defined between B and C. It is not mapped as I do not want to touch table X that the shared foreign keys map to.

In normal sql I would simply do a "left join on b.fk_something=c.fk_something"

When I introduce the word "on" it states it is not allowed. Is anything like I am attempting possible?

Thanks,
Martin.


Top
 Profile  
 
 Post subject: Not possible
PostPosted: Fri Apr 27, 2007 11:53 am 
Regular
Regular

Joined: Wed Aug 24, 2005 11:49 am
Posts: 63
You cannot do outer joins without a mapped association.

_________________
Edwin van der Elst
Finalist IT Group


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.