I have two tables;
Street has
"Street_id", "StreetName", "description"
and Path has
"path_id", "pathDescription", "path_name"
and there is one table more,
Street-path has
"path_id", "Street_id"
Now I want to create a relationship between these tables such that when ever record is deleted from Street, record from Street-path will also be deleted, but they can't have direct relation ship. Only Street and Path can have direct relationship, and record in Path should keep intact.
How to do it in hibernate?
PS: I am using xml, not annotations for hibernate mapping.