title: Hibernate Mapping same Column twice
body: <p>How can fix this thing</p>
  
  <blockquote>
    <p>Repeated column in mapping for entity: com.abc.domain.PersonConnect
    column: PERSON_ID (should be mapped with insert="false"
    update="false")</p>
  </blockquote>
  
  <p>this is snippet from my hbm file</p>
  
  <pre><code>&lt;class name="com.abc.domain.PersonConnect" table="PERSON_CONNECT"&gt;    
      &lt;composite-id&gt;
          &lt;key-many-to-one name="Parent" class="com.abc.domain.Person" column="PARENT_PERSON_ID"/&gt;
          &lt;key-many-to-one name="Child" class="com.abc.domain.Person" column="CHILD_PERSON_ID"/&gt;
      &lt;/composite-id&gt;
  
      &lt;many-to-one class="com.abc.domain.Person" fetch="select" name="parent" lazy="false" &gt; 
          &lt;column length="20" name="PERSON_ID" not-null="true"/&gt; 
      &lt;/many-to-one&gt; 
      &lt;many-to-one class="com.abc.domain.Person" fetch="select" name="child" lazy="false" &gt; 
          &lt;column length="20" name="PERSON_ID" not-null="true"/&gt; 
      &lt;/many-to-one&gt;    
  &lt;/class&gt;
  </code></pre>
  
  <p>and the table goes like this</p>
  
  <h1>Person_Connect</h1>
  
  <ul>
  <li>PK - PARENT_PERSON_ID   </li>
  <li>PK - CHILD_PERSON_ID</li>
  </ul>
  
  <h1>Person</h1>
  
  <ul>
  <li>PK - PERSON_ID</li>
  <li>FNAME</li>
  <li>LNAME</li>
  </ul>