Hello,
I've posted this issue already in German but maybe it is better to post it in English.
I have a constraint violation in my User-Right-Role example. When I delete a role that is associated to a user directly on my database, I get
SQL Error: 1451, SQLState: 23000
Cannot delete or update a parent row: a foreign key constraint fails (`test`.`t_users_roles`, CONSTRAINT `FK_ur_roles_id` FOREIGN KEY (`roles_id`) REFERENCES `t_roles` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION)
This is what I want to get.
But when I delete it via Hibernate, the role and all associations are deleted. Why?
I've posted the code already here:
viewtopic.php?f=10&t=1003113Thanks in anticipation,
iiMaestro