Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MAX( ) in hibernate query

 
Tim McGuire
Ranch Hand
Posts: 820
IntelliJ IDE Tomcat Server VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I use the following query:


I would expect list to contain only one objects, but it contains as many as the query would return without the MAX () there at all.
Any advice?
Thanks!

Tim
 
Neerajplus Kumarplus
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please make sure that there is no typo and you are referring to the java attributes and not to the database column values.

refer to http://neeraj.name/2005/05/26/hibernate-max-function/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic