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_myclass")
public class MyClass extends ActiveRecordBase{//班级
/*
drop table m_myclass;
create table m_myclass(
id int auto_increment primary key,
name varchar(100),
remark varchar(100),
cate_id int
);
*/
@Id private Integer id;
@Column private String name;
@Column private String remark;
@Column Integer cate_id;
@BelongsTo(foreignKey="cate_id")
private Category category;
public Category getCategory() {
return category;
}
public void setCategory(Category category) {
this.category = category;
}
public Integer getCate_id() {
return cate_id;
}
public void setCate_id(Integer cate_id) {
this.cate_id = cate_id;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
}
最近下载更多
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日

最近浏览