首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

hibernate 二

2012-10-09 
hibernate 2hibernate 3.5.3插入数据Hibernate: insert into users (username, password, is_used, real_n

hibernate 2
hibernate 3.5.3
插入数据
Hibernate: insert into users (username, password, is_used, real_name, sex, tell_phone, cell_phone, email, region, city, zip, address, company, title, price, news_letter, create_date, user_id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch update

原因:对象对应的表的某个(些)字段的长度不够
具体:tellphone字段为varchar(10) debug时发现是char(12)

热点排行