On page 71 of the Spec (1.0), in section 9.7.5:
"The return type of a finder method must be the
enterprise Bean's primary key type, or a collection of objects of the primary
key type."
On page 72 in section 9.7.8:
"The return type for a finder method must be the
enterprise Bean's remote interface type, or a collection
thereof."
I don't understand the discrepancy! Is this a
typo? Also, let's say we define an ejbFindLargeAccounts(double amount) method, in the
body of which we execute the SQL query and receive a ResultSet back with a
selection of rows from the database. How then do we turn this data into a
collection of Entity Bean remote interfaces, which is what section 9.7.8
requires us to return?
---------------------------------------------------
Damon Williams
Simplified Telesys
Sun Certified Java Programmer
www.simpletel.com
Damon Williams
Simplified Telesys
Sun Certified Java Programmer
www.simpletel.com
