1.java.lang.IncompatibleClassChangeError:
class org.hibernate.cfg.ExtendedMappings has interface org.hibernate.cfg.Mappings as super class
(hibernate3.5中的hibernate3.0包,已经包涵了hibernate-annotations,hibernate-commons-annotations.jar 这2个包,所以你要去掉 包
试试,)
2.Caused by: java.lang.ClassNotFoundException: javax.persistence.Cacheable
(导入jpa包)
3. org.springframework.beans.TypeMismatchException
(service实现类 接口 未实现 service接口)
4.org.hibernate.annotationexception no identifier specified for entity
(entity类没有定义主键)
数据库操作发出sql,但是没有记录进入数据库
可能数据类型的长度过大
5。failed to lazily initialize a collection of role
hibernate延迟加载的问题。
6"node to traverse cannot be null"
出现这种问题是因为HQL语句出现问题,引起内部查询对象为空,无法处理为空值引起的。解决方法,检查HQL语句(尤其是关键字)。
7.Object with id: 46 was not of the specified subclass: cn.zj.pubinfo.wldcp.entity.Holiday (loaded object was of wrong class
class cn.zj.pubinfo.wldcp.entity.DateDefined)
class org.hibernate.cfg.ExtendedMappings has interface org.hibernate.cfg.Mappings as super class
(hibernate3.5中的hibernate3.0包,已经包涵了hibernate-annotations,hibernate-commons-annotations.jar 这2个包,所以你要去掉 包
试试,)
2.Caused by: java.lang.ClassNotFoundException: javax.persistence.Cacheable
(导入jpa包)
3. org.springframework.beans.TypeMismatchException
(service实现类 接口 未实现 service接口)
4.org.hibernate.annotationexception no identifier specified for entity
(entity类没有定义主键)
数据库操作发出sql,但是没有记录进入数据库
可能数据类型的长度过大
5。failed to lazily initialize a collection of role
hibernate延迟加载的问题。
6"node to traverse cannot be null"
出现这种问题是因为HQL语句出现问题,引起内部查询对象为空,无法处理为空值引起的。解决方法,检查HQL语句(尤其是关键字)。
7.Object with id: 46 was not of the specified subclass: cn.zj.pubinfo.wldcp.entity.Holiday (loaded object was of wrong class
class cn.zj.pubinfo.wldcp.entity.DateDefined)