【Java开源代码栏目提醒】:本文主要为网学会员提供Classonetoone.java,希望对需要Classonetoone.java网友有所帮助,学习一下!
package ch10.hibernate;
import java.util.HashSet;
import java.util.Set;
/**
* Classonetoone entity.
*
* @author MyEclipse Persistence Tools
*/
public class Classonetoone implements java.io.Serializable {// 鐝骇瀹炰綋
// Fields
private Integer classid;// 鐝骇ID
private String classname;// 鐝骇鍚嶇О
private Set stuentonetoones = new HashSet(0);
// Constructors
/** default constructor */
public Classonetoone() {
}
//getter銆乻etter鏂规硶
public Classonetoone(Integer classid) {
this.classid = classid;
}
/** full constructor */
public Classonetoone(Integer classid, String classname, Set stuentonetoones) {
this.classid = classid;
this.classname = classname;
this.stuentonetoones = stuentonetoones;
}
// Property accessors
public Integer getClassid() {
return this.classid;
}
public void setClassid(Integer classid) {
this.classid = classid;
}
public String getClassname() {
return this.classname;
}
public void setClassname(String classname) {
this.classname = classname;
}
public Set getStuentonetoones() {
return this.stuentonetoones;
}
public void setStuentonetoones(Set stuentonetoones) {
this.stuentonetoones = stuentonetoones;
}
}
上一篇:
Classonetomany2.java
下一篇:
美国emba教育概况及其借鉴意义