title: JPA: how to override column names of @Embedded attributes
body: <p><code>Person</code> class</p>
  
  <pre><code>@Embeddable
  public class Person {
      @Column
      public int code;
  
      //...
  }
  </code></pre>
  
  <p>is embedded inside <code>Event</code> twice as two different attributes: <code>manager</code> and <code>operator</code></p>
  
  <pre><code>@Entity
  public class Event {
      @Embedded
      @Column(name = "manager_code")
      public Person manager;
  
      @Embedded
      @Column(name = "operator_code")
      public Person operator;
  
      //...
  }
  </code></pre>
  
  <p>This should give two respective columns when generating database schema with Persistence. Instead an exception is thrown: </p>
  
  <blockquote>
    <p>org.hibernate.MappingException: Repeated column in mapping for entity: Event column: code</p>
  </blockquote>
  
  <p><strong>How to override default column name <code>code</code> for each attribute?</strong></p>