Commit 23c20c85 authored by suntao's avatar suntao

用户对 角色 一对一

parent fe356559
......@@ -60,7 +60,7 @@ public class User extends Primary {
/**
* 用户角色列表
*/
@OneToMany(fetch = FetchType.EAGER)
@OneToOne(fetch = FetchType.EAGER)
@JoinTable(name = "user_role_mapping", joinColumns = @JoinColumn(name = "user_id"), inverseJoinColumns = @JoinColumn(name = "role_id"))
private Role role;
......
Markdown is supported
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