-->
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.  [ 2 posts ] 
Author Message
 Post subject: @Filter with Collections
PostPosted: Fri Jan 08, 2010 9:12 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. Sorry for my bad english :)


Top
 Profile  
 
 Post subject: Re: @Filter with Collections
PostPosted: Mon Jan 11, 2010 11:32 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
This is a general Hibernate question and should be asked on the Hibernate User forum. This forum is for Search, Validator and Shards.


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

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.