You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to configure a custom RowMapper. According to Spring Data JDBC documentation (Custom RowMapper) it should be possible by registering mapper via QueryMappingConfiguration.
If my repository method is annotated with @query, everything works. But if not, my custom mapper is not used.
This works:
public interface FooRepository extends Repository<Foo, Long> {
@Query("select * from foo")
Iterable <Foo> findAll();
}
I'm trying to configure a custom
RowMapper
. According to Spring Data JDBC documentation (Custom RowMapper) it should be possible by registering mapper via QueryMappingConfiguration.If my repository method is annotated with @query, everything works. But if not, my custom mapper is not used.
This works:
This does not work:
Is this a bug or is it intentional?
The text was updated successfully, but these errors were encountered: