This content has been marked as final.
Show 1 reply
-
1. Re: How to define local finder in ejb-jar.xml (CMP2)
foglesa Nov 14, 2001 6:11 PM (in response to maku01)> Hi all!
>
> What is the right way to define a local finder in the
> ejb-jar.xml????
>
> <abstract-schema-name>Genre</abstract-schema-name>
>
> <query-method>
> <method-name>findAll</method-name>
> <method-params>
> </method-params>
> </query-method>
> <result-type-mapping>Local</result-type-mapping>
> <ejb-ql>WHERE id IS NOT NULL</ejb-ql>
>
It should be something like this...
<abstract-schema-name>genre</abstract-schema-name>
...
<ejb-ql>SELECT OBJECT(g) FROM genre AS g where g.id IS NOT NULL</ejb-ql>
Al