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

2.could not insert: [xxx.entity.User]; nested exception is org.hibernate.excepti

2012-11-07 
二.could not insert: [xxx.entity.User] nested exception is org.hibernate.exception.原因:添加字段值

二.could not insert: [xxx.entity.User]; nested exception is org.hibernate.exception.

原因:添加字段值重复,与 数据库unique key email(email)冲突!解决:换个email字段值或者删除数据库对应的记录


1楼badyflf前天 16:32
采用Hibernate添加用户信息nHibernate: n insert n inton test.d_usern (email, nickname, password, user_integral, is_enail_verify, email_verify_code, last_login_time, last_login_ip) n valuesn (?, ?, ?, ?, ?, ?, ?, ?)

热点排行
Bad Request.