开发者

DataIntegrityViolationException: could not insert

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜