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 Query
PostPosted: Thu Oct 13, 2005 5:05 am 
Newbie

Joined: Tue Oct 11, 2005 10:40 am
Posts: 4
Hi All,

I'm trying to figure out why this HQL query doesn't works
Code:
from Product product where product.Levels.Project.Description like '%AA%'


The query parser throw the exception:
Quote:
expecting 'elements' or 'indicies' after Project


while this one runs without problems:
Code:
form Product product join product.Levels levels join levels.Project project where project.Description like ...


Surely I prefer the less verbose one :D
Relationships: Product n:m Level n:1 Project

I'm missing something?

Thanks
Massimo


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 27, 2005 4:11 pm 
Newbie

Joined: Thu Oct 27, 2005 4:09 pm
Posts: 1
Location: Boise, ID USA
Hey Massimo,

I've run into a similar issue. Did you ever find out what the problem was?


Thanks!

-Brent


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.