【Java开源代码栏目提醒】:网学会员,鉴于大家对Java开源代码十分关注,论文会员在此为大家搜集整理了“Studentonetoone2.java”一文,供大家参考学习!
package ch10.hibernate;
import java.util.HashSet;
import java.util.Set;
/**
* Studentonetoone2 entity.
*
* @author MyEclipse Persistence Tools
*/
public class Studentonetoone2 implements java.io.Serializable {
// Fields
private Integer studentid;
private Classonetoone2 classonetoone2;
private String name;
private Integer age;
private Set classonetoone2s = new HashSet(0);
// Constructors
/** default constructor */
public Studentonetoone2() {
}
/** minimal constructor */
public Studentonetoone2(Integer studentid) {
this.studentid = studentid;
}
/** full constructor */
public Studentonetoone2(Integer studentid, Classonetoone2 classonetoone2,
String name, Integer age, Set classonetoone2s) {
this.studentid = studentid;
this.classonetoone2 = classonetoone2;
this.name = name;
this.age = age;
this.classonetoone2s = classonetoone2s;
}
// Property accessors
public Integer getStudentid() {
return this.studentid;
}
public void setStudentid(Integer studentid) {
this.studentid = studentid;
}
public Classonetoone2 getClassonetoone2() {
return this.classonetoone2;
}
public void setClassonetoone2(Classonetoone2 classonetoone2) {
this.classonetoone2 = classonetoone2;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public Integer getAge() {
return this.age;
}
public void setAge(Integer age) {
this.age = age;
}
public Set getClassonetoone2s() {
return this.classonetoone2s;
}
public void setClassonetoone2s(Set classonetoone2s) {
this.classonetoone2s = classonetoone2s;
}
}
上一篇:
Studentonetomany2.java
下一篇:
网络能耗监测系统管理端的研究与实现