title: @SequenceGenerator on class annotated with @MappedSuperclass
body: <p>I have following structure of my entities:</p>
  
  <pre><code>@MappedSuperclass
  public abstract class BaseEntity {
    @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqGenerator")
    private Long id;
  }
  
  @MappedSuperclass
  @Inheritance(strategy = InheritanceType.SINGLE_TABLE)
  @SequenceGenerator(name = "seqGenerator", sequenceName = "DICTIONARY_SEQ")
  public abstract class Intermed extends BaseEntity {}
  
  @Entity
  public class MyEntity1 extends Intermed {}
  
  @Entity
  public class MyEntity2 extends Intermed {}
  </code></pre>
  
  <p>And I got following exception:</p>
  
  <pre><code>    Caused by: org.springframework.beans.factory.BeanCreationException: 
  Error creating bean with name 'sessionFactory' defined in class path resource [context/applicationContext.xml]: 
  Invocation of init method failed; nested exception is org.hibernate.AnnotationException: Unknown Id.generator: seqGenerator
  </code></pre>
  
  <p>When I change @MappedSuperclass to @Entity on Intermed class, everything works OK. 
  Are there any problems with using @MappedSuperclass and @SequenceGenerator? Or I have missed something?</p>