-->
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: Hibernate3 caused a error when executing a left outer join
PostPosted: Sun May 29, 2005 11:40 pm 
Newbie

Joined: Sun May 29, 2005 11:23 pm
Posts: 1
I am in the process of migrating from Hibernate 2.0 to Hibernate 3.0.
I am attempting to execute a Hibernate 3.0 query that was generated from an HQL string. The following is an example of the HQL I am using:

SELECT p.id
FROM Person p LEFT JOIN p.names name
WHERE name.myName = :myName

The following is an example of the generated SQL string:

select * from (
select person0_.ID as col_0_0_
from PERSON person0_ ,
left outer join NAMES na1_ on person0_.ID=na1_.ID
where na1_.MY_NAME)=upper('test') )
where rownum <= 50

Notice that it is adding a comma (,)


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.