posted 16 years ago
All ,
Book is associated with Publisher by many-one asociation
I am attaching Book.java ,Book.hbm.xml , Publisher.java , Publisher.hbm.xml.
Everything works OK. When I want to delete couple of rows in PUBLISHER , I am getting exception as they are referred in BOOK table.
Can anybody share ideas if I want to delete all the BOOK objects when the associated PUBLISHER is deleted ? ( Some thing like cascade=delete).
it might be obvious for some of you....
********** Publisher.java
********** Publisher.java ends here
********** Publisher.hbm.xml starts here
********** Publisher.hbm.xml ends here
************ Book.java starts here
************ Book.java ends here
************ Book.hbm.xml starts here
************ Book.hbm.xml ends here