Commit 0ebbd66a authored by Zheng Jie's avatar Zheng Jie
Browse files

代码优化

parent d9d50d35
......@@ -52,7 +52,7 @@ public class Role extends BaseEntity implements Serializable {
@ApiModelProperty(value = "用户", hidden = true)
private Set<User> users;
@ManyToMany
@ManyToMany(fetch = FetchType.EAGER)
@JoinTable(name = "sys_roles_menus",
joinColumns = {@JoinColumn(name = "role_id",referencedColumnName = "role_id")},
inverseJoinColumns = {@JoinColumn(name = "menu_id",referencedColumnName = "menu_id")})
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment