From: Max R. A. <ma...@eo...> - 2003-01-03 20:53:19
|
> Well, by the looks of your code, you aren't *actually* passing in a List > of Longs....it looks like you're passing instances of Headend. If you > pass a List of java.lang.Long I would expect it to work. > > Alternatively you could use: > > q.setParameterList( > "id_list", > headends, // a list of Headend instances > Hibernate.association(Headend.class) // the Hibernate Type for Headend > ); Hey, what happens here :) I can't remember to have seen this "idiom" before...what does it do ? :) (I've never seen/used Hibernate.association before...what is it's purpose ? And why is it named association when it returns "entity" types for a given class ?... /max |