You may take a look at Jackson Serialization Views... https://docs.spring.io/spring/docs/current/spring-framework-reference/web.html#mvc-ann-jacksonJackson Serialization Views.
I´ve taken a look into the Hibernate5 module you tried and it has some interesting features... but none should fix this issue out of the box for you.
By the way, I normally fix this issue by not returning the Entity as the response but DTOs instead.