title: Hibernate: How specify custom sequence generator class name using annotations?
body: <p>I want to specify following hbm configuration using annotations:</p>
  
  <pre><code>&lt;id name="somePK" column="&amp;quot;somePK&amp;quot;" type="long"&gt;
              &lt;generator class="com.db.hibernate.KeyGenerator"/&gt;
          &lt;/id&gt;
  </code></pre>
  
  <p>I am not sure how to provide class name with </p>
  
  <pre><code>@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SEQ_STORE")
  </code></pre>
  
  <p>Do I have to specify <code>@javax.persistence.SequenceGenerator</code> in each entity class? <br/>
  Can I specify just the class name under <code>@GeneratedValue</code> annotation?</p>