|
大神帮忙看看
前台提示: could not execute statement
后台日志:
Hibernate:
select
this_.id as id1_6_0_,
this_.content as content2_6_0_,
this_.create_by as create3_6_0_,
this_.create_date as create4_6_0_,
this_.create_name as create5_6_0_,
this_.is_checkbox as is6_6_0_,
this_.is_dbsynch as is7_6_0_,
this_.is_pagination as is8_6_0_,
this_.is_tree as is9_6_0_,
this_.jform_type as jform10_6_0_,
this_.jform_version as jform11_6_0_,
this_.querymode as querymo12_6_0_,
this_.relation_type as relatio13_6_0_,
this_.sub_table_str as sub14_6_0_,
this_.table_name as table15_6_0_,
this_.update_by as update16_6_0_,
this_.update_date as update17_6_0_,
this_.update_name as update18_6_0_
from
cgform_head this_
where
this_.table_name=?
Hibernate:
select
cgformhead0_.id as id1_6_0_,
cgformhead0_.content as content2_6_0_,
cgformhead0_.create_by as create3_6_0_,
cgformhead0_.create_date as create4_6_0_,
cgformhead0_.create_name as create5_6_0_,
cgformhead0_.is_checkbox as is6_6_0_,
cgformhead0_.is_dbsynch as is7_6_0_,
cgformhead0_.is_pagination as is8_6_0_,
cgformhead0_.is_tree as is9_6_0_,
cgformhead0_.jform_type as jform10_6_0_,
cgformhead0_.jform_version as jform11_6_0_,
cgformhead0_.querymode as querymo12_6_0_,
cgformhead0_.relation_type as relatio13_6_0_,
cgformhead0_.sub_table_str as sub14_6_0_,
cgformhead0_.table_name as table15_6_0_,
cgformhead0_.update_by as update16_6_0_,
cgformhead0_.update_date as update17_6_0_,
cgformhead0_.update_name as update18_6_0_
from
cgform_head cgformhead0_
where
cgformhead0_.id=?
Hibernate:
insert
into
cgform_head
(content, create_by, create_date, create_name, is_checkbox, is_dbsynch, is_pagination, is_tree, jform_type, jform_version, querymode, relation_type, table_name, id)
values
(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate:
insert
into
cgform_field
(content, create_by, create_date, create_name, dict_field, dict_table, dict_text, field_default, field_href, field_length, field_name, field_valid_type, is_key, is_null, is_query, is_show, is_show_list, length, main_field, main_table, old_field_name, order_num, point_length, query_mode, show_type, table_id, type, id)
values
(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate:
insert
into
cgform_field
(content, create_by, create_date, create_name, dict_field, dict_table, dict_text, field_default, field_href, field_length, field_name, field_valid_type, is_key, is_null, is_query, is_show, is_show_list, length, main_field, main_table, old_field_name, order_num, point_length, query_mode, show_type, table_id, type, id)
values
(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
[org.hibernate.engine.jdbc.spi.SqlExceptionHelper]SQL Error: 1406, SQLState: 22001
[org.hibernate.engine.jdbc.spi.SqlExceptionHelper]Data truncation: Data too long for column 'type' at row 1
[org.jeecgframework.core.common.dao.impl.GenericBaseCommonDao]保存实体异常
org.hibernate.exception.DataException: could not execute statement
at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:71)
at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:49)
at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:125)
at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:110)
at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:136)
at org.hibernate.engine.jdbc.batch.internal.NonBatchingBatch.addToBatch(NonBatchingBatch.java:58)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3067)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3503)
at org.hibernate.action.internal.EntityInsertAction.execute(EntityInsertAction.java:88)
at org.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:377)
at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:369)
at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:286)
at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:339)
at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:52)
at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1234)
at org.jeecgframework.core.common.dao.impl.GenericBaseCommonDao.save(GenericBaseCommonDao.java:169)
at org.jeecgframework.core.common.service.impl.CommonServiceImpl.save(CommonServiceImpl.java:58)
at jeecg.cgform.service.impl.config.CgFormFieldServiceImpl.saveTable(CgFormFieldServiceImpl.java:154)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy88.saveTable(Unknown Source)
at jeecg.cgform.controller.config.CgFormHeadController.save(CgFormHeadController.java:259)
at sun.reflect.GeneratedMethodAccessor468.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
|
|