-->
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.  [ 6 posts ] 
Author Message
 Post subject: Hibernate exception
PostPosted: Sun Jun 12, 2005 12:42 pm 
Newbie

Joined: Sun Jun 12, 2005 12:38 pm
Posts: 2
Hello all,
I am getting an exception when I am using HQL to join two tables. The query is:
select line from ListMap as map join ListLine as line on map.Idx = line.Idx

The exception which I get is: outer or full join must be followed by path expression.

I have tried different variations lke doing outer join etc.. in the HQL but to no avail.

Thanks in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 12, 2005 12:48 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
There is no "on" in HQL.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 12, 2005 8:45 pm 
Newbie

Joined: Sun Jun 12, 2005 12:38 pm
Posts: 2
Thanks for your reply.
If HQL does not have a "on", how would I do I join on the a field. Does hibernate does it automatically on the primary key?

Thanks..


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 12, 2005 9:11 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
This is documented.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 19, 2005 11:11 am 
Beginner
Beginner

Joined: Wed Feb 23, 2005 11:32 am
Posts: 25
Location: Austria/Vienna
christian wrote:
This is documented.


please simply add something to the hibernate document refering to the keyword "on".


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 19, 2005 1:36 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
cgs wrote:
christian wrote:
This is documented.


please simply add something to the hibernate document refering to the keyword "on".


lol, we should also add references to all the non HQL keywords in the spec ;-)

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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.