|
From: <don...@gm...> - 2007-05-15 15:50:01
|
On 5/15/07, Thomas Risberg <tho...@tr...> wrote: If anyone can come up with a better way of instantiating this: > ParameterizedBeanPropertyRowMapper<Customer>(Customer.class) - then that > would be great, I haven't found a way of avoiding specifying Customer > twice there due to the type erasure. > This won't avoid specifiying the class twice but it will ensure they are the same: public ParameterizedBeanPropertyRowMapper(Class<T> mappedClass) instead of public ParameterizedBeanPropertyRowMapper(Class mappedClass) Donnchadh |