1:相对于人,角色 可以在角色加入user的多对一关联.在sql语句中,使用的是private User user 中的user,例如 select * from Role r where r.user.id=1