title: How to convert JSON object with unidirectional Java Object using Jackson?
body: <p>I have two entities called client and quote.</p>
  
  <p>Client having many quotes.</p>
  
  <p>Many Quotes having singe client.</p>
  
  <pre><code>@Entity
  class Client
  {
  int c_id;
  String clientName;
  @OneToMany
  List&lt;Quote&gt; quotes;
  }
  
  @Entity
  class Quote
  {
  int q_id;
  String item;
  @ManyToOne
  Client client;
  }
  </code></pre>
  
  <p>JSON Object Request Param : </p>
  
  <pre><code>{
    "clientName":"ABC pvt Ltd",
    "quotes" :[
      {
        "item":"A"
      },
      {
        "item":"B"
      }
      {
        "item":"C"
      }   
     ]
  }
  </code></pre>
  
  <p>I want serialize above Request param to Client Object. </p>
  
  <pre><code>ObjectMapper om = new ObjectMapper();
  Client cli = om.convervalue(x,Client.class);
  
  session.save(cli);
  </code></pre>
  
  <p>If I run the above the code 
  <strong>Client having List of Quote Reference</strong>. <br/><br/>
  But <strong>Quote class Client Reference is null</strong>.</p>
  
  <p>So if i want to achieve this i did it manually.</p>
  
  <pre><code>ObjectMapper om = new ObjectMapper();
  Client cli = om.convervalue(x,Client.class);
  
  List&lt;Quote&gt; quotes = cli.getQuotes;
  
  for(int i=0;i&lt;quotes.size();i++)
  {
    Quote qu = quotes.get(i);
    qu.setClient(cli);
  }
  
  session.save(cli);
  </code></pre>
  
  <p>The above code works fine.<br/> <br/>How to do it automatically with Jackson Library.<br/> <br/>Is there any annotation is do it?<br/></p>
  
  <p><strong>Basically Two Way Relationship Serialization is Needed</strong>? </p>