title: Establish relationship from one table to another table in Hibernate
body: <p>I have 2 tables, one table is </p>
  
  <blockquote>
    <p>City Table ( int id, string name) </p>
  </blockquote>
  
  <p>and my another table is </p>
  
  <blockquote>
    <p>Distance  table(int id,int cityId (FK city),int neighbourId(FK city))</p>
  </blockquote>
  
  <p>I want to use Hibernate but I can't establish a relationship between these  tables in Hibernate. </p>