Hibernate: select roles0_.ADMIN_ID as ADMIN2_1_, roles0_.ROLE_ID as ROLE1_1_,

在hibernate中映射多对多中,查询ADMIN_INFO表连带出roles的属性时报错,我仔细检查了映射的XML文件对比数据库都没问题,求大神帮忙解决下呀





ADMIN_INFO_SEQ































ROLE_INFO_SEQ









public class AdminInfo implements java.io.Serializable {

private Integer id;
private String adminCode;
private String password;
private String name;
private String telephone;
private String email;
private Date enrolldate;
private Set roles = new HashSet();

你可能感兴趣的:(Hibernate: select roles0_.ADMIN_ID as ADMIN2_1_, roles0_.ROLE_ID as ROLE1_1_,)