title: How to override @GeneratedValue declared in mapped-superclass?
body: <p>We have a <code>@MappedSuperclass class Entity</code> which defines the default id and the generator:</p>
  
  <pre><code>@Id
  @GeneratedValue(strategy = GenerationType.AUTO)
  @Override
  public K getId() {
      return id;
  }
  </code></pre>
  
  <p>I want to not use any generator in subclass <code>Foo</code> at all, because I will provide the primary key myself.</p>
  
  <p>I must extend <code>Foo</code> from the base class <code>Entity</code>, because a lot and a lot functions depend on this base class. The annotation <code>@AttributeOverrides</code> seems not support to override <code>@GeneratedValue</code>. </p>