Du bør indstille allocationSize
til 1
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "student_id_seq")
@SequenceGenerator(name = "student_id_seq",
sequenceName = "Student_seq",
allocationSize = 1)
Du kan læse mere i dokumentationen SequenceGenerator doc