title: Make Id column to work with sequence or GenerationType.IDENTITY according to the database
body: <p>When we have to use the same code base to work with Oracle or other MSSql databases, is there a way to tell how to choose the type of mapping inside entity classes? For oracle it uses sequences like</p>
  <pre><code>@Id 
  @GeneratedValue(generator=&quot;InvSeq&quot;) 
  @SequenceGenerator(name=&quot;InvSeq&quot;,sequenceName=&quot;INV_SEQ&quot;, allocationSize=5) 
  private long id;
  </code></pre>
  <p>and for MySQL it uses</p>
  <pre><code>@Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  private Integer id;
  </code></pre>
  <p>Is there a way to configure this without duplicating entity classes?</p>