I have one entity A which has some properties, and reference to another entity B
A{
....
@ManyToOne(fetch=FetchType.LAZY)
B b;
...
}
same for B(@onetomany for A in B). Its a bidirectional relation. While calling the web service for entity A it gives link to the B entity instead of whole object in response json. I want the whole object in web service response JSON instead of link to that related entity. How can i do that? I am using springboot + spring data jpa + hibernate as jpa provider + spring 4