-->
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: 2 problems with Hibernate3
PostPosted: Mon Apr 18, 2005 1:19 am 
Newbie

Joined: Sat Oct 30, 2004 10:47 pm
Posts: 15
1.
HQL "select foo from Foo foo order by count(foo.id) desc" will be translated to
"select ... order by count(foo.id)desc", the space character of "count(foo.id)desc"
has been eaten and will produce some error in my application.
I think this is a bug in org.hibernate.sql.QuerySelect.appendTokens(...).


2.

In MySql dialect, I use hql like "select foo from Foo foo where foo.value & 1=1".
Hibernate3 AST parser will print some error like "unexpected token &", and it can't
be solved when I write "&" in query string substitution like "hibernate.query.substitutions=bitand &".


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.