| 
					
						 Hi,
 
 I have a hibernate object that references another hibernate object, eg
 
 public class A {
    private B b;
 
    public B getB() {
        return b;
    }
 
    public void setB(B b) {
        this.b = b;
    }
 
 }
 
 with the relevant part of A.hbm.xml being:
         ...
         <many-to-one
             name="b"
             class="B"
             cascade="all-delete-orphan"
             outer-join="auto"
             update="true"
             insert="true"
             column="b_id"
         />
         ...
 
 Now, when I dereference B from A, as in a.setB(null) I want the B object to be removed from the database - hence I have been using cascade="all-delete-orphan".  However, all I'm finding is that the b_id column is being set to null, and the record is not being deleted?
 
 Version: 3.05
 
 any ideas?
 
 
 Row 
					
  
						
					 |