Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

MAX( ) in hibernate query  RSS feed

 
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/
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!