package cn.temptation.bean;

import lombok.Data;

import javax.persistence.*;

/**
 * 【人员】实体
 */
@Entity
@Table(name = "sys_user")
@Data
public class User {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(nullable = false, columnDefinition = "COMMENT '人员编号'")
    private Integer userid;

    @Column(columnDefinition = "COMMENT '帐号'")
    private String username;

    @Column(columnDefinition = "COMMENT '密码'")
    private String password;

    // 关联角色
    @ManyToOne(cascade = CascadeType.REFRESH)
    @JoinColumn(name = "roleid", foreignKey = @ForeignKey(name = "none"))
    private Role role;
}
最近下载更多
呜呜呜吴天  LV2 2022年11月11日
xsxtxbb  LV8 2022年10月10日
wangsu123456  LV9 2022年2月23日
wanglinddad  LV54 2021年12月26日
chen_jw  LV10 2021年9月17日
贾大神  LV5 2021年7月7日
ericxu1116  LV24 2021年5月15日
interface  LV22 2021年4月29日
lyd19931203  LV21 2021年4月22日
laishaofe  LV7 2021年4月12日
最近浏览更多
WBelong  LV7 2023年12月27日
fff2003  LV6 2023年11月17日
漫步的海星  LV4 2023年9月21日
微信网友_6247573567180800  LV2 2023年8月31日
另类清晨  LV8 2023年8月19日
qqqwml  LV1 2023年6月6日
这次我放你玩 2023年5月22日
暂无贡献等级
Iterman  LV2 2023年2月27日
gvin001  LV14 2023年1月3日
微信网友_6248713511227392  LV11 2022年12月5日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友