Hi, In my project, I have one filter. In my entity class, I put @FilterDef and @Filter.
@FilterDef(name="distribuidores", parameters={ @ParamDef(name="codDistribuidor",type="string")})
@Filter(name="distribuidores", condition="actcoddistribuidor in :codDistribuidor")
The variable value is setting in authenticator moment normally, and it is Collection<String> type. However, the filter is not setted in my entity query. If I change to condition="actcoddistribuidor = :codDistribuidor" and my variable to simple String, works.
What's the correct way to work with IN in my condition?
My architecture is Jboss Seam 2.1, Hibernate 3.4.
Cheers, Raphael
|