Take care with differences between this two annotations(the packages), because java.beans.Transient has effect on JSON serialization at REST response, but it shouldn't
Spring Boot: 3.0.2
https://github.com/spring-projects/spring-framework/assets/8656998/ac069240-48d2-43fe-b089-0a9cfc6e550f
Comment From: robozb
Solution: use this package: jakarta.persistence.Transient if you have to use the @Transient (not to store the prop in the DB)