There was an error while loading. Please reload this page.
1 parent d35ee1a commit 0ec18e3Copy full SHA for 0ec18e3
src/main/asciidoc/jpa.adoc
@@ -911,7 +911,7 @@ class UserManagementImpl implements UserManagement {
911
912
for (User user : userRepository.findAll()) {
913
user.addRole(role);
914
- userRepository.save(user);
+ // note that no call to "save" is necessary since the entities are attached to the EntityManager
915
}
916
917
----
0 commit comments