PDA

View Full Version : Cannot use Generic IRowMapper<T> with StoredProcedure


bjornwang
02-02-2007, 04:13 PM
Hello,

Is there any way to get the AddRowMapper() method of the StoredProcedure class to accept a generic RowMapper, i.e. IRowMapper<T>?

I find myself creating lots of boilerplate code to be able to return an IList<T> from my DAO objects.
This would work out of the box if AddRowMapper() supported generic RowMappers.

What I want is an AddRowMapper() that takes Spring.Data.Generic.IRowMapper<T> as a parameter instead of the old Spring.Data.IRowMapper.

Any input on this?

Erich Eichinger
02-02-2007, 05:10 PM
Hi,

You're right - I think we consequently should complete Spring.Data's existing Generics support by enhancing Spring.Data.Objects.* as well.

I added a JIRA entry (http://opensource.atlassian.com/projects/spring/browse/SPRNET-469) to remind us.

cheers,
Erich

Mark Pollack
11-20-2007, 04:09 AM
FYI, this issue has been resolved.