title: Is there a way to dynamically choose a @GeneratedValue strategy using JPA annotations and Hibernate?
body: <p>I am working on a product that will be supporting multiple database engines (Oracle, MSSQL, MySQL). For Oracle, I would prefer to use Sequences rather than a Sequence table to avoid potential concurrency and locking issues on a high-volume installation, but other database engines do not support sequences. Furthermore, I would prefer to use one sequence per table rather than a global sequence (such as <code>hibernate_sequence</code>), so <code>@GeneratedValue(strategy = GenerationType.AUTO)</code> won't work. Is there a way to dynamically choose the strategy at runtime?</p>