开发者

DataIntegrityViolationException: could not insert

开发者 https://www.devze.com 2023-03-07 23:42 出处:网络
Maybe someone can help, how do I fix this? I\'m using hibernate, spring and gwt. com.google.gwt.user.server.rpc.UnexpectedException:

Maybe someone can help, how do I fix this? I'm using hibernate, spring and gwt.

com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract void

com.yeah.client.service.PictureService.saveItem(com.yeah.shared.model.Picture)' threw an unexpected exception: org.springframework.dao.DataIntegrityViolationException: could not insert: [com.yeah.shared.model.Picture]; SQL [insert into YeaH.Picture (albumID, picLocation) values (?, ?)]; constraint [null]; nested exception is org.hiberna开发者_运维问答te.exception.ConstraintViolationException: could not insert:

[com.yeah.shared.model.Picture]


It seems you are inserting the object which fails to validate the constraint. (may be with same key)

0

精彩评论

暂无评论...
验证码 换一张
取 消