Hibernate version:2.1
Hi,
I have this relation between to classes :
Code:
public class Person {
...
/**
* @hibernate.many-to-one class="com.foo.Address"
* foreign-key="PersonAddress" constrained="true"
* column="idAddress" cascade="all"
* @return Returns the adresse.
*/
public Address getAddress() {
return address;
}
...
}
I have set cascade at "all". If a delete a person, the adress was not deleted ... why ?
If I update an adress on a person, a new adress is created and the old wan not deleted ... why ?
Regard,
Syl