admin管理员组文章数量:1389761
I use spring-data-jdbc
and have mapped my DB tables with .springframework.data.relational.core.mapping.Table
.
I also have some custom queries with .springframework.data.jdbc.repository.query.Query
in use which use these @Table
entities as return-value.
I would now like to replace one of these custom queries with .springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate
to achieve more freedom for more complex queries.
Is it possible to achieve this without the additional implementation of an .springframework.jdbc.core.RowMapper
for the JdbcTemplate
? Can I use the @Table
class of spring-data-jdbc
and its internal mapping directly here?
Does spring-data-jdbc
also use the JdbcTemplate
internally?
本文标签: Using JdbcTemplate with Table Entities in Spring Data JDBC Without a Custom RowMapperStack Overflow
版权声明:本文标题:Using `JdbcTemplate` with `@Table` Entities in Spring Data JDBC Without a Custom `RowMapper` - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744574821a2613557.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论