org.hibernate.QueryTimeoutException: Could not execute JDBC batch update问题解决

com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.QueryTimeoutException: Could not execute JDBC batch update

在做Hibernate批量插入时,出现这个错误org.hibernate.QueryTimeoutException:

错误原因是表空间的容量不足,需要加大空间容量;那首先想到的是应该查询其容量,所以应该想办法查询其容量以及增大其容量。

可能原因:数据长度太长,超过了字段的长度限制

解决方法:增加字段的长度限制

例:alter table table_name modify  column_name varchar(50);

猜你喜欢

转载自yotionking.iteye.com/blog/2330242