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 } } ----