首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Exception >

Could not execute JDBC batch update解决方法!

2014-01-26 
------解决方法--------------------------------------------------------BC batch update 异常:映射文件:

------解决方法--------------------------------------------------------BC batch update 异常:

映射文件:
<hibernate-mapping>
<class name= "personal.hw.Responses " table= "responses " catalog= "bbs ">
<id name= "id " type= "java.lang.Integer ">
<column name= "id " />
<generator class= "increment "/>
</id>
<property name= "title " type= "java.lang.String ">
<column name= "title " length= "20 " not-null= "true " />
</property>
<property name= "content " type= "java.lang.String ">
<column name= "content " length= "500 " />
</property>
<property name= "owner " type= "java.lang.String ">
<column name= "owner " length= "20 " not-null= "true " />
</property>
<property name= "time " type= "java.util.Date ">
<column name= "time " length= "19 " not-null= "true " />
</property>
<property name= "topicId " type= "java.lang.Integer ">
<column name= "topicId " not-null= "true " />
</property>
</class>
</hibernate-mapping>

表结构:
+---------+------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+---------+------------------+------+-----+---------+----------------+
| id | int(10) unsigned | NO | PRI | NULL | auto_increment |
| title | varchar(20) | NO | | NULL |   |
| content | varchar(500) | YES | | NULL |   |
| owner | varchar(20) | NO | | NULL |   |
| time | datetime | NO | | NULL |   |