Finders that retrieve more than one row have to return a Collection. You can easily iterate this collection or pass it to another object. ----- Original Message ----- From: "occello" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 26, 2001 1:36 PM Subject: finder methods > Hi, > > I am using version 2.1.1 of JOnAS. I would like > to know how to get the result of a query like > "select * from table where field2 = <values>" > Finder methods like findByField2 only return > one record (provide the corresponding primary > key). > But if several record fulfill this condition how > can I have them all? > > Any suggestion? > > Thanx in advance, > > Audrey Occello > > P.S. : Please don't tell me I have to get all records > with findAll() and then search for the records that > match my condition with conditionnal statement! > > > ---- > To unsubscribe, send email to [EMAIL PROTECTED] and > include in the body of the message "unsubscribe jonas-users". > For general help, send email to [EMAIL PROTECTED] and > include in the body of the message "help". > ---- To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "unsubscribe jonas-users". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
