-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hibernate Filter with IN
PostPosted: Thu Aug 13, 2009 5:58 pm 
Newbie

Joined: Thu Aug 13, 2009 5:52 pm
Posts: 1
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.