Improve write-paths to use mapping model & SQL AST
Description
Basically a follow-up to the read-path (read-by-position) work, but applying the “mapping model” to write-paths.
Write-paths meaning how we treat a #merge or #persist and other persistence context operations in terms of writing that to the database.
Using the mapping-model here allows handling of it using the SQL AST stuff already added in 6.0, allowing much better control from the Dialect of how certain operations should be performed (an “upsert”, e.g.).
Basically a follow-up to the read-path (read-by-position) work, but applying the “mapping model” to write-paths.
Write-paths meaning how we treat a
#merge
or#persist
and other persistence context operations in terms of writing that to the database.Using the mapping-model here allows handling of it using the SQL AST stuff already added in 6.0, allowing much better control from the Dialect of how certain operations should be performed (an “upsert”, e.g.).