title: How to include join column in json result with JPA+Hibernate
body: <p>I have a <code>Province</code> class like below:</p>
  
  <pre><code>public class Province {
  
      @Id
      Long id;
  
      @Column(nullable = false)
      String name;
  
      @JsonManagedReference
      @OneToMany(mappedBy = "province")
      List&lt;City&gt; cities;
  
  }
  </code></pre>
  
  <p>and a <code>City</code> class like below:</p>
  
  <pre><code>public class City{
      @Column(nullable = false)
      String name;
  
      @JsonBackReference
      @ManyToOne(fetch = FetchType.LAZY)
      @JoinColumn(name = "province_id")
      Province province;
  
  }
  </code></pre>
  
  <p>now I want to have <code>pronivce_id</code> (as an int value not object) in JSON result of City in REST result.</p>
  
  <p>How can I do this?</p>