Problem solved, the @Transactional annotation works for public methods only.
eezacque
2
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Unexpected exception after detaching entity | 1 | 389 | June 12, 2024 | |
| Inner transaction's EntityManager removed before commit | 0 | 3278 | June 1, 2020 | |
| AssertionFailure occurs detach after persist | 2 | 2975 | October 12, 2023 | |
| Hibernate 6 exception: 'Caused by: org.hibernate.PersistentObjectException: detached entity passed to persist' | 4 | 3673 | May 24, 2023 | |
| TransientObjectException when mixing EntityManager.delete with delete statements in 6.6.x | 6 | 2349 | August 8, 2025 |