-->
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: @Filter with Collections
PostPosted: Mon Jan 11, 2010 11:39 am 
Newbie

Joined: Fri Jan 08, 2010 8:26 am
Posts: 3
Hi!

I'm having a problem with filters when I must use a collection to filter the query, the first time everything works fine, but the second time, if I change the number of parameters that I pass in parameterList method, sql launchs this error : "Missing IN or OUT parameter at index:: 5".

I've seen in the output query that the number of IN parameters is fixed the first time this filter is launched. Next times the filter is waiting for the same number of params although the size of the collection passed in setParameterList has been changed.

These are the main lines of my code, and I think all seems to be ok :

Code:
@FilterDef(name = "types", parameters = @ParamDef(name = "typeIds", type = LONG_FQN))

@Filter(name = "types", condition  = " AC_TYPE in (:typeIds)" )

session.enableFilter("types").setParameterList("typeIds", ids);


I hope that someone could help.

Thanks in advance.

PD. I'm sorry for my bad english :)


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.