I have a spring project and I'm using Hibernate and JpaRepository. Now I want to run an update on many records at the same time, I have a map of ids and a field to be updated. The amount of records is variable as it depends on a request. This is not really ORM-level but lower level. How should I go about it? I'm new to Spring and Hibernate, so, I don't know which API I should use to tackle this issue.
I obtain the data as a Map<UUID, Integer>
and I want to turn it into a set of values for a query like this one: Update multiple rows in same query using PostgreSQL. Essentially I'm doing a batch update.