import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.SequenceGenerator; import javax.persistence.Table; @Entity @Table(name = "Student") public class Student { @Id @GeneratedValue(strategy=GenerationType.SEQUENCE) @SequenceGenerator(name="student_sequence") private int student_id; private String student_name; private int student_age; public int getStudent_id() { return student_id; } public String getStudent_name() { return student_name; } public int getStudent_age() { return student_age; } public void setStudent_id(int id) { this.student_id = id; } public void setStudent_name(String name) { this.student_name = name; } public void setStudent_age(int age) { this.student_age = age; } }