Hi folks, I'm using Hibernate together with MySQL Community Server 5.1. I have a couple of entities with relations between them, some ManyToMany, some ManyToOne and OneToMany relations. For all of them cascading actions are set, but when I look at the foreign key relations in the database, there are no actions set for Delete or Update event of related objects, for none of the relations.
After all, I don't have a problem deleting a object of a ManyToMany relation (well, any more). For all other relations I do get a foreign key constraint violation error.
Any help is much appreciated.
Regards, Stevo
|