You can not use
ORDER operator in your EJB-QL statement.
SELECT clause for EJB_QL in EJB2.0 specification looks like
select_clause ::= SELECT [DISTINCT ] { single_valued_path_expression |OBJECT (identification_variable)} Try to download EJB2.0 specification here:
ftp://ftp.java.sun.com/pub/ejb/947q9tbb/ejb-2_0-fr2-spec.pdf If you need to get ordered records , just use
SELECT * FROM tableA statement for reading data to the collection of bean objects (via finder) and after that just sort the result collection.
Regards, Volodymyr Shram
[ April 16, 2003: Message edited by: Volodymyr Shram ]