0 Replies Latest reply on Jun 20, 2002 3:08 PM by Scott

    Custon finders that return a single record/bean?

    Scott Newbie

      Is there a way to define a custom finder in jaws.xml that returns a single bean reference, as opposed to a Collection?
      All the examples I've seen return Collections.
      I know its easy to just order the results by the intended field and then just grab the first item in the Collection and throw the rest away, but I was wondering if there isn't a simpler way to do it because I am going to be implementing this on about 30-40 beans and i want it to be as simple as possible. Will ejb-ql do it, maybe?

      Scott