I am writing an app with Spring Boot + JPA, using a Postgres database. I have a User Entity and I am trying to get a timestamp when the user record is saved and/or modified.
I had similar issue, but the reason for my case is that I had @Transactional annotation on the test class, after removing that, everything works as expected.