Skip to main content
added 15 characters in body
Source Link
Bohemian
  • 427.4k
  • 103
  • 603
  • 750

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.

You may take a look at Jackson Serialization Views... https://docs.spring.io/spring/docs/current/spring-framework-reference/web.html#mvc-ann-jackson

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.

You may take a look at Jackson 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.

Source Link

You may take a look at Jackson Serialization Views... https://docs.spring.io/spring/docs/current/spring-framework-reference/web.html#mvc-ann-jackson

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.