We using MYSQL and Hibernate for our project.
JPA is used to persist object in DB.
We have Multiple class with similar code
@Entity @Table(n
@Id @SequenceGenerator(name="admin_seq", sequenceName="unique_id") @GeneratedValue(strategy=GenerationType.AUTO, generator="admin_seq") private Long id
worked for me , thanks for all your answers