-->
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: using the max(...) function with the Ast Query parser
PostPosted: Thu Mar 30, 2006 2:55 pm 
Newbie

Joined: Thu Mar 30, 2006 2:33 pm
Posts: 1
Hibernate version:3.1

I am in the midst of migrating our application from the classic query parser to the ast query parser. One of the issues I am trying to solve is in regards to the max() function.

In the classic query parser I could run the query: "select max(login) from UserLogin login" and I would recieve a UserLogin object back from hibernate.

Running the same query through the Ast Query parser does not return a UserLogin object.

Running: "select max(login.id) from UserLogin login", however, runs just fine.

Is returning an object from the max(...) function somthing that has changed syntactically or is it functionality that will be included in the future?

Thanks in advance,
Justin McAllister


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.