分类:
2008-09-09 12:41:03
/**
* @hibernate.class table="students"
* @author Administrator
*
*/
public class Student {
private Long id;
private String name;
private String sex;
private String email;
/**
* @hibernate.property column="email"
* @return
*/
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
/**
* @hibernate.id generator-class="native" column="id"
* @return
*/
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
/**
* @hibernate.property column="name"
* @return
*/
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
/**
* @hibernate.property column="sex"
* @return
*/
public String getSex() {
return sex;
}
public void setSex(String sex) {
this.sex = sex;
}
}
[1]