| 
					
						 Hibernate version: 2.1
 
 Hi,
 
 I have a set of licences in a class person : 
 
 public class Person {
 ...
 	/**
 	 * @hibernate.set lazy="false" cascade="all" order-by="type"
 	 * @hibernate.collection-key column="idPerson"
 	 * @hibernate.collection-one-to-many class="com.foo.License"
 	 * @return Returns the licenses.
 	 */
 	public Set getLicenses() {
 		return licenses;
 	}
 ...
 }
 
 I have cascade at "all". When I load a person with X licences, if I remove all the license and I call save on it, the license are not deleted, only idPerson is set at null in table License...why ?
 
 The behavior I want is the deletion of the license in database.
 
 Regards,
 Syl 
					
  
						
					 |