• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JPA + Hibernate + Spring - Could not commit transaction

 
Pooja Shah
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

When making an update using merge, i get the error -
Could not commit JPA transaction; nested exception is javax.persistence.RollbackException: Error while commiting the transaction

Inserts and deletes work fine.
The class is as follows -

Any idea as to what is happening?
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
where is your primary key?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic