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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -