SSH整合开发“找不到实体类”的错误
来源:百度知道 编辑:UC知道 时间:2024/06/30 09:41:14
org.springframework.orm.hibernate3.HibernateSystemException: Unknown entity: system.systemlogin.userinfo.bo.Userinfo; nested exception is org.hibernate.MappingException: Unknown entity: system.systemlogin.userinfo.bo.Userinfo
Caused by: org.hibernate.MappingException: Unknown entity: system.systemlogin.userinfo.bo.Userinfo
at org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:550)
不是映射文件错误,映射文件是hibernate Synchonize生成的,没有错,呵呵
Caused by: org.hibernate.MappingException: Unknown entity: system.systemlogin.userinfo.bo.Userinfo
at org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:550)
不是映射文件错误,映射文件是hibernate Synchonize生成的,没有错,呵呵
是你的映射的配置文件写错了吧,跟你所写的实体类的属性名不一置!
你给出的异常太少,有好多情况,你看看Spring配置对不对
你的实体类中findbyid方法错误,是不是myeclipse自动生成的,然后你又改变包了
应该是你Applicationcontext文件配置的问题吧!