From: One O. <1ov...@mb...> - 2003-01-03 16:14:37
|
> This *looks* to be exactly what I'm looking for, however, I'm getting an > "inconsistent datatypes" error from Oracle. Is there something I need to do > to get :id_list to be recognized as Longs? 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 ); Gavin --------------------------------------------------------------------- Never lose a fax again, receive faxes to your personal email account! Visit http://www.mbox.com.au/fax |