diff --git a/src/main/asciidoc/jpa.adoc b/src/main/asciidoc/jpa.adoc index ad98fcf54..c7f20cb4c 100644 --- a/src/main/asciidoc/jpa.adoc +++ b/src/main/asciidoc/jpa.adoc @@ -860,7 +860,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 } } ----