Hibernate mapping in Java -
i have 2 tables;
street has
"street_id", "streetname", "description"
and path has
"path_id", "pathdescription", "path_name"
and there 1 table more,
street-path has
"path_id", "street_id"
now want create relationship between these tables such when ever record deleted street, record street-path deleted, can't have direct relation ship. street , path can have direct relationship, , record in path should keep intact.
how in hibernate?
ps: using xml, not annotations hibernate mapping.
you can use tutorial: hibernate mapping
Comments
Post a Comment