title: Fetch lazy object while serializing in spring data rest
body: <p>I have one entity A which has some properties, and reference to another entity B</p>
  
  <pre><code>A{
  ....
     @ManyToOne(fetch=FetchType.LAZY)
     B b;
  ...
  }
  </code></pre>
  
  <p>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</p>