Skip to content
New issue

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

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

Already on GitHub? # to your account

Could JdbcTemplate support using Query and Update #1514

Closed
1528110566 opened this issue May 16, 2023 · 1 comment
Closed

Could JdbcTemplate support using Query and Update #1514

1528110566 opened this issue May 16, 2023 · 1 comment
Assignees
Labels
for: external-project For an external project and not something we can fix

Comments

@1528110566
Copy link

R2dbcEntityTemplate support some operations based on org.springframework.data.relational.core.query.Query and org.springframework.data.relational.core.query.Update, like
public <T> Flux<T> select(Query query, Class<T> entityClass) throws DataAccessException and public Mono<Long> update(Query query, Update update, Class<?> entityClass) throws DataAccessException.

I've noticed spring-data-relational combines spring-data-jdbc and spring-data-r2dbc, so could JdbcTemplate support operations based on Query and Update, or release Transformation Capabilities from Query&Update to sql in spring-data-r2dbc#QueryMapper?

Thanks a lot.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label May 16, 2023
@mp911de mp911de self-assigned this May 22, 2023
@mp911de
Copy link
Member

mp911de commented Jul 4, 2023

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.

@mp911de mp911de closed this as not planned Won't fix, can't repro, duplicate, stale Jul 4, 2023
@mp911de mp911de added for: external-project For an external project and not something we can fix and removed status: waiting-for-triage An issue we've not yet triaged labels Jul 4, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
for: external-project For an external project and not something we can fix
Projects
None yet
Development

No branches or pull requests

3 participants