Closed 1528110566 closed 1 year ago
JdbcTemplate
is a utility to run SQL queries without knowledge of your underlying data model. Applying Query
and Update
requires deep inspection of your domain model and accepting constraints that not every database functionality is supported. JdbcTemplate
gives you unrestricted access to run any SQL query. Therefore, there will be no support for such an approach in JdbcTemplate
.
R2dbcEntityTemplate
support some operations based onorg.springframework.data.relational.core.query.Query
andorg.springframework.data.relational.core.query.Update
, likepublic <T> Flux<T> select(Query query, Class<T> entityClass) throws DataAccessException
andpublic Mono<Long> update(Query query, Update update, Class<?> entityClass) throws DataAccessException
.I've noticed
spring-data-relational
combinesspring-data-jdbc
andspring-data-r2dbc
, so couldJdbcTemplate
support operations based onQuery
andUpdate
, or release Transformation Capabilities fromQuery&Update
tosql
inspring-data-r2dbc#QueryMapper
?Thanks a lot.