报错如下
org.hibernate.MappingException: An association from the table a_admins refers to an unmapped class: com.wangxl.hibernate.pojo.ARole
出现此类错误一般是1,配置文件中引用该类的路劲书写错误。2.没有该类对应的配置文件。3,在hibernate配置文件中没写配置文件路径。
org.hibernate.MappingException: Repeated column in mapping for entity: com.wangxl.hibernate.pojo.AAdmin column: roleId (should be mapped with insert="false" update="false")
关联关系中引用类属性与被引用的column="roleId"属性重复。将引用这类中的属性去掉一个就可以了。