I have a couple of doubts concerning the <finder-method > tag.
specifically, I would like to implement a query like "select * from
table where field LIKE '%value'"

Considering I have:
                        <cmp-field-mapping name="_fantasia" 
persistence-name="FANTASIA" />
in my orion-ejb-jar.xml.
and the docs tell me:
 <finder-method partial="true|false" query="$1 = $myField AND
$myOtherField > 5"> 
I suppose (not really clear in the docs) that $1 is the value passed to
the finder method and $MyField is the persistence name, in the above
example FANTASIA and not _fantasia. Is that correct?

in this case can I create a query like:
                        <finder-method query="$1 LIKE '%' + $FANTASIA + '%'">

Sven
-- 
======================================================================================
Sven E. van 't Veer                                          
http://www.cachoeiro.net
Java Developer                                                      [EMAIL PROTECTED]
======================================================================================

Reply via email to