Код: Выделить всё
public interface JpaRepository extends JpaRepository {}
...
...
Entity entity1 = Entity.build()
.version(1L)
.id(123)
.status("NEW")
.build;
...
Entity entity2 = Entity.build()
.version(1L)
java 21.0.2;
Springboot 3.2 .2;
postgresql 42.2.4;
r2dbc 1.0.7.release < /p>
Подробнее здесь: [url]https://stackoverflow.com/questions/79465838/springdata-r2dbc-vs-jpa-when-saving-a-list-of-entities-with-the-same-ids[/url]