reset password
Author Message
nehabhatt
Posts: 9
Posted 19:32 May 05, 2009 |

When I am trying to add Blog to datbase , I do get all the values from the form but at the time of saving it into database its gives following error.

 

Could not execute JDBC batch update; nested exception is org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
2009-05-05 19:13:20,218 ERROR ExceptionResolver: org.springframework.dao.DataIntegrityViolationException: Could not execute JDBC batch update; nested exception is org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update

 

Batch entry 0 insert into Blog (title, description, image, owner_id, lastentry_id, id) values (abva, hbjh, yhu, 1100001, NULL, 2000010) was aborted.  Call getNextException to see the cause.

Attachments:
cysun
Posts: 2935
Posted 20:39 May 05, 2009 |

Well, it says something about violating a constraint. So find out what contraint it is, and why it was violated.