title: Delete row and reference using detached objects with Hibernate
body: <p>I've got an object A with a @onetoone to object B, so object A contains a reference to the id of object B and I want to delete object B in the database including the reference on object A. I wonder whats the most proper solution to do this. I've hoped to set property b on object A to null, my objects are detached on the moment that I want to perform the deletion. I've tried several solutions and I've seen a wide range of exceptions to :-p</p>