This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes EJB and other Java EE Technologies and the fly likes how to pick the max field in cmp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "how to pick the max field in cmp" Watch "how to pick the max field in cmp" New topic
Author

how to pick the max field in cmp

kevin chang
Ranch Hand

Joined: Mar 08, 2003
Posts: 64
in CMP, it seems that i can't use select max(FIELD) from TABLE in the EJB-QL. any suggestion about pick the max value?


Sun Certified Java Programmer, Sun Certified Java Developer. <br />Strving to be a real architect.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
The EJB-QL of EJB 2.0 specification doesn't include the MAX function, if that's the version you're using.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to pick the max field in cmp