title: How to join repeated column JPA Hibernate
body: <p>I have 2 fields and such connections:</p>
  <pre><code>@ManyToOne(targetEntity = Coordinate.class, fetch = FetchType.LAZY)
  @JoinColumn(name=&quot;coordinate_id&quot;)
  private Coordinate startRouteCoordinateId; 
  
  @ManyToOne(targetEntity = Coordinate.class, fetch = FetchType.LAZY)
  @JoinColumn(name=&quot;coordinate_id&quot;)
  private Coordinate endRouteCoordinateId; 
  </code></pre>
  <p>But I get the error: Repeated column in mapping for entity</p>
  <p>How can I use 2 fields of the same class in Hibernate?</p>
  <p>Thanks</p>