title: JPA @MappedSuperclass and JPAMetaModelEntityProcessor
body: <p>I have following scenario:</p>
  
  <p>1) A abstract @MappedSuperClass with composite PK:</p>
  
  <pre><code>@MappedSuperclass
  @EqualsAndHashCode(of = { "id" }, callSuper = false)
  public abstract class LocalizedDetail {
  
      private static final long serialVersionUID = 1L;
  
      @EmbeddedId
      @Getter
      @Setter
      private LocalePK id;
  (...)
  </code></pre>
  
  <p>2) This is my PK:</p>
  
  <pre><code>@Embeddable
  @EqualsAndHashCode
  @AllArgsConstructor
  @NoArgsConstructor
  public class LocalePK implements Serializable {
  
      private static final long serialVersionUID = 1L;
  
      @Column(name = "ID", length = 256)
      @Getter
      @Setter
      private String id;
  
      @Column(name = "LOCALE", length = 16)
      @Getter
      @Setter
      private String locale;
  
  }
  </code></pre>
  
  <p>3) LocalizedDetail sub class:</p>
  
  <pre><code>@Entity
  @Table(name = "BT_VALUE_OBJECT_INFO")
  public class ValueObjectInfo extends LocalizedDetail {
  (...)
  </code></pre>
  
  <p>4) Generating JPA meta model through maven using org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor plugin.</p>
  
  <p>What is happening is that LocalePK metamodel is being generated without any attributes:</p>
  
  <pre><code>@Generated(value = "org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor")
  @StaticMetamodel(LocalePK.class)
  public abstract class LocalePK_ {
  
  
  }
  </code></pre>
  
  <p>But if I set this LocalePK as a composite PK of any other entity that does not extends LocalizedDetail it is generated correctly. I need to create a "fake" entity class just to generate this metamodel.</p>
  
  <p>Is there any known limitation to this model to generate correct PK meta-model?</p>
  
  <p>Thanks,</p>