title: Hibernate - synchronize two properties mapping the same column
body: <p>Is it possible to keep sync two properties on the same entity mapped to the same column (with basic JPA, or with hibernate)?</p>
  
  <p>I have two properties:</p>
  
  <pre><code>@JoinColumn(referencedColumnName = "id", insertable = false, name = "parent", updatable = false)
  @ManyToOne(fetch = FetchType.LAZY)
  private Person parent;
  @Column(name = "parent")
  private Integer parentId;
  </code></pre>
  
  <p>Basically, I would like the following:</p>
  
  <pre><code>System.out.println(element.getParentId());
  System.out.println(element.getParent().getId());
  element.setParentId(2);
  System.out.println(element.getParentId());
  System.out.println(element.getParent().getId());
  </code></pre>
  
  <p>This to print "3,3,2,2" instead of "3,3,2,3".</p>
  
  <p>Is it possible (without writing a custom lazy-loading on the getParent() getter?)</p>
  
  <p>Thx in advance</p>