This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: how to pick the max field in cmp
 
Similar Threads
Deploying EJB using MySql as a datasource
EJB date/time
EJB-QL problem
MovieBean in HFEJB p396
Entity beans could not be used (WSAD 5)