
Hibernate
冰之旅
个人网站:http://www.360chwl.net/
展开
-
hibernate No Dialect mapping for JDBC type: -1解决方案
Hibernate不支持数据库中的Text解决方案public class MyDialect extends MySQLDialect { public MyDialect() { super(); registerHibernateType(-1, Hibernate.STRING.getName()); registerHibernateType(Types.DECIMA原创 2013-07-29 11:47:41 · 1107 阅读 · 0 评论 -
Spring管理Hibernate事务出现异常处理
出现以下错误:org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here 解决方案:1、判断是否已包含管理 解原创 2013-06-08 12:47:36 · 2432 阅读 · 0 评论