I would like to have native and portable identifier creation on my JPA 2 entities currently running Hibernate and MySQL
When using @GeneratedValue (strategy = AUTO), hibernate defaults to the "hibernate_sequence" table in MySQL, I would like IDENTITY
If I solve it with @GeneratedValue (strategy = IDENTITY), I lose Oracle / Postgres portability
How to set Hibernate to use default IDENTITY for mysql when @GeneratedValue strategy = AUTO?
source share