【Java开源代码栏目提醒】:网学会员在Java开源代码频道为大家收集整理了Classonetomany2.java提供大家参考,希望对大家有所帮助!
package ch10.hibernate;
/**
* Classonetomany2 entity.
*
* @author MyEclipse Persistence Tools
*/
public class Classonetomany2 implements java.io.Serializable {
// Fields
private Integer classid;
private Studentonetomany2 studentonetomany2;
private String classname;
// Constructors
/** default constructor */
public Classonetomany2() {
}
/** minimal constructor */
public Classonetomany2(Integer classid) {
this.classid = classid;
}
/** full constructor */
public Classonetomany2(Integer classid,
Studentonetomany2 studentonetomany2, String classname) {
this.classid = classid;
this.studentonetomany2 = studentonetomany2;
this.classname = classname;
}
// Property accessors
public Integer getClassid() {
return this.classid;
}
public void setClassid(Integer classid) {
this.classid = classid;
}
public Studentonetomany2 getStudentonetomany2() {
return this.studentonetomany2;
}
public void setStudentonetomany2(Studentonetomany2 studentonetomany2) {
this.studentonetomany2 = studentonetomany2;
}
public String getClassname() {
return this.classname;
}
public void setClassname(String classname) {
this.classname = classname;
}
}