现在有如下一个实体类:
@Entity
@Table(name = "student")
public class Student {
@Id
@GeneratedValue(strategy = GenerationType.TABLE)
@Column(name = "id")
private long id; // 学生id
@Column(name = "name")
private String name; //学生姓名
@Column(name = "sex")
char sex; // 性别
@Column(name = "age")
int age; // 年龄
public char getSex() {
return sex;
}
public void setSex(char sex) {
this.sex = sex;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
&#