From: Chris N. <ch...@si...> - 2002-10-24 19:40:34
|
Just a thought...shouldn't Hibernate be able to infer the Type or Type[] needed in find/findIdentifiers/iterate calls from the query itself? e.g. List moreCats = sess.find( "from cat in class eg.Cat where " + "cat.name = 'Fritz' or cat.id = ? or cat.id = ?", new Object[] { id1, id2 }, new Type[] { Hibernate.LONG, Hibernate.LONG } ); I think Hibernate already knows that these need to be LONGs. Maybe there are cases where there is some ambiguity, but if so I would guess it could be resolved by looking at the actual types of the argument objects (id1, id2). -Chris |