change GenerationType.AUTO to GenerationType.IDENTITY