package model; import java.util.Date; /** * Created by yinus * Date:2016/4/6 * Time:18:44 */ public class C2S { private int stu_id; private int cou_id; private double credit; private Date create_time; private Date update_time; public C2S() { } public C2S(int stu_id, int cou_id, double credit) { this.stu_id = stu_id; this.cou_id = cou_id; this.credit = credit; create_time=new Date(); update_time=new Date(); } public int getStu_id() { return stu_id; } public void setStu_id(int stu_id) { this.stu_id = stu_id; } public int getCou_id() { return cou_id; } public void setCou_id(int cou_id) { this.cou_id = cou_id; } public double getCredit() { return credit; } public void setCredit(double credit) { this.credit = credit; } public Date getCreate_time() { return create_time; } public void setCreate_time(Date create_time) { this.create_time = create_time; } public Date getUpdate_time() { return update_time; } public void setUpdate_time(Date update_time) { this.update_time = update_time; } @Override public String toString() { return "studentId:"+this.getStu_id()+" courseId:"+this.getCou_id()+" credit:"+this.getCredit(); } }
package model; import java.util.Date; /** * Created by yinus * Date:2016/4/6 * Time:18:44 */ public class Course { private int id; private String title; private Date createTime; private Date updateTime; public Course() { } public Course(int id, String title) { this.id = id; this.title = title; this.createTime = new Date(); this.updateTime = new Date(); } public int getId() { return id; } public void setId(int id) { this.id = id; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } public Date getUpdateTime() { return updateTime; } public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; } @Override public String toString() { return "id:"+this.getId()+" name:"+this.getTitle()+" createTime:"+this.getCreateTime()+" updateTime:"+this.getUpdateTime(); } }
package model; import java.util.Date; /** * Created by yinus * Date:2016/4/6 * Time:18:44 */ public class Student { private int id; private String name; private Date createTime; private Date updateTime; public Student() {} public Student(int id, String name) { this.id = id; this.name = name; this.createTime = new Date(); this.updateTime = new Date(); } public int getId() { return id; } public void setId(int id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } public Date getUpdateTime() { return updateTime; } public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; } @Override public String toString() { return "id:"+this.getId()+" name:"+this.getName()+" createTime:"+this.getCreateTime()+" updateTime:"+this.getUpdateTime(); } }
时间: 2024-10-12 17:35:26