package entity;

import com.et.ar.ActiveRecordBase;
import com.et.ar.annotations.BelongsTo;
import com.et.ar.annotations.Column;
import com.et.ar.annotations.Id;
import com.et.ar.annotations.Table;

@Table(name="m_choose")
public class Choose extends ActiveRecordBase{
	
	/*
	 drop table m_choose;
		create table m_choose(
			id int auto_increment primary key,  
		    course_id int,
		    student_id int
    );
	 */
	
	@Id private Integer id;
	
	@Column private Integer student_id;
	@BelongsTo(foreignKey="student_id")
    private User student;
	
	@Column private Integer course_id;
	@BelongsTo(foreignKey="course_id")
    private Course course;

	public User getStudent() {
		return student;
	}

	public void setStudent(User student) {
		this.student = student;
	}

	public Course getCourse() {
		return course;
	}

	public void setCourse(Course course) {
		this.course = course;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getStudent_id() {
		return student_id;
	}

	public void setStudent_id(Integer student_id) {
		this.student_id = student_id;
	}

	public Integer getCourse_id() {
		return course_id;
	}

	public void setCourse_id(Integer course_id) {
		this.course_id = course_id;
	}
}
最近下载更多
xiao小果  LV13 2024年8月24日
微信网友_6778018359316480  LV1 2023年12月18日
jiawei007  LV2 2023年2月8日
2530652407  LV1 2022年5月11日
haotian95110  LV4 2021年12月24日
yyyyds  LV1 2021年12月4日
wanglinddad  LV55 2021年11月29日
wangdongtai  LV31 2021年11月24日
golden_kun  LV2 2021年11月19日
543666826  LV34 2021年11月19日
最近浏览更多
xiao小果  LV13 2024年8月24日
123456cjj  LV1 2024年6月2日
WBelong  LV8 2024年3月6日
222dsff 2024年1月5日
暂无贡献等级
微信网友_6778018359316480  LV1 2023年12月17日
category 37  LV1 2023年12月11日
lvllvl  LV4 2023年11月1日
五折也挺好的  LV13 2023年9月22日
李亮  LV19 2023年8月29日
1289755  LV3 2023年7月30日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友