When using Spring Data JPA, I usually set spring.jpa.open-in-view=false, because I want to return non-managed DTOs to my controller layer.
spring.jpa.open-in-view=false
In that sense, if