No, Finder methods can return single beans. You just need to make sure that the query you execute will in fact only return one row or else you'll get an exception. Here's a snippet of XDoclet on a bean that finds a person by social security number and returns just a single Person bean
* @ejb.finder * signature="Person findBySsn(java.lang.String ssn)" * query="SELECT OBJECT(p) FROM Person p WHERE p.ssn = ?1"
Is UserLocal the local interface of a bean named User? If so try returning just User.
A correction: finder query which returns object should return _at_most_ one row. (hint: 0 rows for ObjectNotFound)
Grand. Thanks for the advice.
Petino - what are you hinting? No comprendo, senor.