-
Notifications
You must be signed in to change notification settings - Fork 366
Open
Labels
in: jdbcSpring Data JDBCSpring Data JDBCin: repositoryRepositories abstractionRepositories abstractiontype: enhancementA general enhancementA general enhancement
Description
Rafal Glowinski opened DATAJDBC-269 and commented
Many relational databases provide means to perform an upsert (insert or update) operation with just one DB request. There is no such feature in JPA standard and maybe Spring Data JDBC could be better in that area - just like JOOQ is.
- MySQL has 'INSERT ... ON DUPLICATE KEY UPDATE'
- PostgreSQL has 'INSERT... ON CONFLICT ..'
- MSSQL has 'MERGE'
- Oracle has 'MERGE'
Also, the one and only Vlad Mihalcea has posted a nice summary of upsert operations performed by JOOQ.
Issue Links:
- DATAJDBC-210 Improve strategy for persisting referenced entities
9 votes, 9 watchers
muety, yewton, nithin-pankaj, PC-AKumar, NarimanAB and 26 more
Metadata
Metadata
Assignees
Labels
in: jdbcSpring Data JDBCSpring Data JDBCin: repositoryRepositories abstractionRepositories abstractiontype: enhancementA general enhancementA general enhancement