Skip to content

Spring Data JDBC - Custom RowMapper question #1669

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mlegenovic opened this issue Nov 17, 2023 · 1 comment
Closed

Spring Data JDBC - Custom RowMapper question #1669

mlegenovic opened this issue Nov 17, 2023 · 1 comment
Labels
status: duplicate A duplicate of another issue

Comments

@mlegenovic
Copy link

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();
}

This does not work:

public interface FooRepository extends Repository<Foo, Long> {
    Iterable <Foo> findAll();
}

Is this a bug or is it intentional?

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Nov 17, 2023
@schauder
Copy link
Contributor

This is a duplicate of #1006

@schauder schauder closed this as not planned Won't fix, can't repro, duplicate, stale Nov 17, 2023
@schauder schauder added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged labels Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants