SingleTreeDemo.java
package com.example.entity.demo_4.base_1;
@Entity
@DynamicInsert
@DodoEntity(name = "单表树", actions = { DodoAction.ALL })
@DodoMenus(
levelOne = @DodoMenu(name = "Demo系统", sortSeq = 7),
levelTwo = @DodoMenu(name = "基础演示", sortSeq = 1),
levelThree = @DodoMenu(name = "单表树演示", sortSeq = 11)
)
@DodoTreeRef(mapParentField = "parentDemo")
public class SingleTreeDemo extends BaseEntity {
private static final long serialVersionUID = 5030052771143415896L;
@DodoField(sortSeq = 0, name = "上级")
private SingleTreeDemo parentDemo;
@DodoShowColumn(sortSeq = 1)
@DodoField(sortSeq = 1, name = "名称", isnullable = false)
private String name;
@OneToOne
public SingleTreeDemo getParentDemo() {
return parentDemo;
}
public void setParentDemo(SingleTreeDemo parentDemo) {
this.parentDemo = parentDemo;
}
@Column(length = 16)
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
当前内容版权归 DodoFramework 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 DodoFramework .