There is an example of this from the cayenne examples:
http://sourceforge.net/project/showfiles.php?group_id=48132 (separate
download to cayenne)
My initial thought however might have been something like:
Expression max = Expression.fromString("db:max(my_db_col)");
...but this could be totally wrong.
----- Original message -----
From: "Reinaldo Coelho Sartorelli" <reinaldo_sartorell..ahoo.com.br>
To: cayenne-use..bjectstyle.org
Date: Thu, 29 Jul 2004 22:22:56 -0300
Subject: Problems to execute(SELECT MAX).
All, who i can execute SELECT MAX from column, if "SqlSelectQuery" is
deprecated, and don't have MAX option ???
Tks,
Reinaldo.
This archive was generated by hypermail 2.0.0 : Thu Jul 29 2004 - 23:28:57 EDT