“djh”
2024-12-05 eee41a5fb58e6547a43929430f4b72908119db6e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package com.gkhy.testFourierSpecialGasMonitor.domain.account.entity;
 
import lombok.Data;
 
import javax.persistence.*;
 
/**
 * @email 1603559716@qq.com
 * @author: zf
 * @date: 2023/3/9
 * @time: 15:43
 */
@Data
@Entity
@Table(name = "sys_user_role_bind")
public class SysUserRoleBind {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
 
    private Long userId;
 
    private Long roleId;
 
    @OneToOne(targetEntity = Role.class,fetch = FetchType.EAGER)
    @JoinColumn(name = "roleId",referencedColumnName = "id",insertable =false ,updatable = false)
    private Role role;
 
}