This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes One-To-Many Bidirectional org.hibernate.exception.ConstraintViolationException on DELETE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "One-To-Many Bidirectional org.hibernate.exception.ConstraintViolationException on DELETE" Watch "One-To-Many Bidirectional org.hibernate.exception.ConstraintViolationException on DELETE" New topic
Author

One-To-Many Bidirectional org.hibernate.exception.ConstraintViolationException on DELETE

Markus Schmider
Ranch Hand

Joined: Feb 25, 2007
Posts: 103






When I run the test I get


I thought CascadeType.ALL would take care of this. What's my mistake?

Thanks for any input.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: One-To-Many Bidirectional org.hibernate.exception.ConstraintViolationException on DELETE