From 0ec18e38e1f1c1083f824266cd61950bd3fe5397 Mon Sep 17 00:00:00 2001 From: Jens Schauder Date: Fri, 24 Jul 2020 12:02:21 +0200 Subject: [PATCH] DATAJPA-1761 - Removed superfluous save from example code. --- src/main/asciidoc/jpa.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/asciidoc/jpa.adoc b/src/main/asciidoc/jpa.adoc index ca7c10305..f2bcffd2f 100644 --- a/src/main/asciidoc/jpa.adoc +++ b/src/main/asciidoc/jpa.adoc @@ -911,7 +911,7 @@ class UserManagementImpl implements UserManagement { for (User user : userRepository.findAll()) { user.addRole(role); - userRepository.save(user); + // note that no call to "save" is necessary since the entities are attached to the EntityManager } } ----