问题 In a legacy database, I have three tables: Users, Workgroups, and UsersWorkgroup. UsersWorkgroup stores what role a user has in a workgroup. Here are the relevant code snippets: @Entity @Table(name = "users_workgroup") public class UsersWorkgroup implements Serializable { private static final long serialVersionUID = 1L; @EmbeddedId protected UsersWorkgroupPK usersWorkgroupPK; @JoinColumn(name = "idworkgroup", referencedColumnName = "idworkgroup") @ManyToOne(optional = false) private Workgroup