Relative Content

Tag Archive for javasqljpaspring-elpostgresql-15

UPSERT native SQL query for Collection as @Param of JPA Repository method

I need to iterate over collection of Enteties and apply UPSERT for each element atomically. As i see it – just need to send this collection into SQL query by SpEL.
I know, what i can iterate over collection by Java code, and send Enteties one by one, but it will not be as atomically as I want to realize. (Or I maybe don’t understand some things).