Skip to content

Commit c71186d

Browse files
Update UserService.java
1 parent 92bc8cb commit c71186d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

HibernateSpringBootCountSQLStatements/src/main/java/com/jpa/UserService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public void userOperationsWithoutTransactional() {
2929
userRepository.save(user); // 1 update
3030
userRepository.delete(user); // 1 delete
3131

32-
// at this point the transaction was committed
32+
// at this point there is no transaction running
3333
// a total of 5 statements, not very good
3434
assertInsertCount(1);
3535
assertUpdateCount(1);

0 commit comments

Comments
 (0)