title: How to inherit and replace a @Entity from commons package?
body: <p>I have an <code>@Entity</code> in a commons package:</p>
  <pre><code>@Entity(&quot;person&quot;)
  public class Person {
      //fields...
  }
  </code></pre>
  <p>In an implementing application, I want to extend this entity with some custom fields.
  But I still want to map to table <code>person</code>:</p>
  <pre><code>@Entity(&quot;person&quot;)
  public class Person extends org.commons.Person {
      //additional fields
  }
  </code></pre>
  <p>Result:</p>
  <pre><code>Caused by: org.hibernate.DuplicateMappingException: The [Person] and [CustomPerson] entities 
  share the same JPA entity name: [person] which is not allowed
  </code></pre>
  <p>So how can I extend that entity and tell spring to somehow &quot;forget&quot; about the parent Person entity, so that only my <code>CustomPerson</code> is loaded?</p>