在hibernate配置中会有多对一或者多对多,一对多的情况, 在xml配置时有时会出现映射不匹配的情况,就是xml配置错误了
Caused by: org.hibernate.MappingException: An association from the table SYS_USER_ROLE refers to an unmapped class: com.sdonky.score.domain.po.SysRole
错误如图:
在hibernate配置中会有多对一或者多对多,一对多的情况, 在xml配置时有时会出现映射不匹配的情况,就是xml配置错误了
Caused by: org.hibernate.MappingException: An association from the table SYS_USER_ROLE refers to an unmapped class: com.sdonky.score.domain.po.SysRole
错误如图: