|
Hi
Leung,
You
should'nt use the '%' symbols in the finder definition, instead you should
attach them to the parameter you pass to the finder method.
i.e.
finder
definition:
<finder-method query="select catname,description
from cat_ejb_Category where $description like $1">
finder calling: findBy...("%" + description + "%");
Hope
this help
Giustino De Vincentiis
|
- Re: customize finder method DeVincentiis Giustino
- Re: customize finder method Joe Walnes
