-->
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.  [ 3 posts ] 
Author Message
 Post subject: HQL formal syntax?
PostPosted: Tue Feb 08, 2005 3:41 pm 
Newbie

Joined: Tue Jan 04, 2005 11:06 am
Posts: 15
I get an error from the following HQL query string:

"from creditor c in join c.outstandingBalances b where b.creditorBalanceID.accountNumber = :tan"

The error is:

net.sf.hibernate.QueryException: in expected: c [ ...query string...]

I invoke query as:

list = session.createQuery(qstring).setInteger("tan", 2).list();

Why would it expect an 'in' clause? More generally,
where can I find formal syntax for HQL?

Rob

_________________
Rob Gordon
SuffolkSoft, Inc.
Westby, WI


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 08, 2005 6:43 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Fix your classname ("creditor" is not the name of a class).

A formal syntax is in Hibernate3/grammar


Top
 Profile  
 
 Post subject: re: HQL Syntax
PostPosted: Tue Feb 08, 2005 11:33 pm 
Newbie

Joined: Tue Jan 04, 2005 11:06 am
Posts: 15
Sheesh. I guess it is hard to distinguish between
lower case c and upper case C at 2AM.

Thanks.

_________________
Rob Gordon
SuffolkSoft, Inc.
Westby, WI


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