public boolean saveOrUpdate(Object o) { getHibernateTemplate().save(o); return false; }
}
一执行dao里的方法就报如下错误
org.springframework.orm.hibernate3.HibernateSystemException: Unknown entity: org.test.entity.Back; nested exception isorg.hibernate.MappingException: Unknown entity: org.test.entity.Back at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:676) at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412) at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:424) at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374) at org.springframework.orm.hibernate3.HibernateTemplate.save(HibernateTemplate.java:694)