U moet allocationSize
set instellen naar 1
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "student_id_seq")
@SequenceGenerator(name = "student_id_seq",
sequenceName = "Student_seq",
allocationSize = 1)
U kunt meer lezen in documentatie SequenceGenerator doc