-->
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: HQL: Problem with "with" clause on many-to-many
PostPosted: Thu Dec 01, 2005 2:40 am 
Beginner
Beginner

Joined: Fri Nov 04, 2005 3:51 pm
Posts: 32
Hibernate version:3.1 release candidate 3

Simple sample query.

Quote:
select
a
from
Cat a
inner join
a.kittens b
with
b.id = 1


When kittens is a one-to-many, this query runs fine. When kittens is a many-to-many I get error like, "The column prefix 'kittens2_' does not match with a table name or alias name used in the query."

Should it work or can I not use with many-to-many? Thank you.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 01, 2005 8:13 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
submit a report to jira with a test case reproducing the problem. that sounds like a bug


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.