i have one class called course and one class called tutorials in class i hav set of tutorials .Wnen i delete course i want all tutorials associaed with that course to be deleted . But presently the tutorials are not geting deleted when i delete the owner course only the foreign key courseid in tutorials tables becomes null;
i am using folloing code cascade="delete-orphan,all" inverse= "true" in course.hhm.xml
when i am deleting