com.tlgen.orm.domain.SysUser Maven / Gradle / Ivy
The newest version!
package com.tlgen.orm.domain;
import com.tlgen.orm.annotation.*;
import java.util.List;
@TableName(name = "sys_user")
public class SysUser {
@Id
// @FieldName(name = "id")
private String id;
@FieldName(name = "username")
private String username;
private String phonenumber;
@Association(relate = "dept_id")
private SysDept dept;
@Collection(middle = SysUserRole.class)
private List roleList;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPhonenumber() {
return phonenumber;
}
public void setPhonenumber(String phonenumber) {
this.phonenumber = phonenumber;
}
public SysDept getDept() {
return dept;
}
public void setDept(SysDept dept) {
this.dept = dept;
}
public List getRoleList() {
return roleList;
}
public void setRoleList(List roleList) {
this.roleList = roleList;
}
@Override
public String toString() {
return "SysUser{" +
"id='" + id + '\'' +
", username='" + username + '\'' +
", phonenumber='" + phonenumber + '\'' +
", dept=" + dept +
", roleList=" + roleList +
'}';
}
}