-->
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: need help with outer join with HQL
PostPosted: Thu May 18, 2006 5:28 pm 
Newbie

Joined: Thu Jan 12, 2006 2:08 pm
Posts: 1
The generated SQL (show_sql=true):

I want to do something like this

select name,emailaddress
from employee outer join user on
employee.emailaddress = user.emailaddress

How can I do the same in HQL.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 18, 2006 6:15 pm 
Expert
Expert

Joined: Fri Jul 22, 2005 2:42 pm
Posts: 670
Location: Seattle, WA
In short words: arbitrary joins are not supported by Hibernate.
You could however do that in SQL and return object from the SQL
http://www.hibernate.org/hib_docs/v3/re ... l-creating

_________________
--------------
Konstantin

SourceLabs - dependable OpenSource systems


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.