hi
this is part of my User class:
////////////////////
Code:
@Entity
@Table(name = "xxx.yyy.[User]")
@org.hibernate.annotations.Entity(mutable = true)
@BatchSize(size = 50)
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class User {
..
private Cluster cluster;
..
@ManyToOne(fetch=FetchType.LAZY)
@JoinColumn(name="clusterId")
@LazyToOne(LazyToOneOption.PROXY)
public Cluster getCluster() {
return cluster;
}
public void setCluster(Cluster cluster) {
this.cluster = cluster;
}
///////////////////////
this User is represented in the 'User' table in the database
the clusterId column is an int, nullable
when i delete a certain 'cluster' in my application
the value in the 'clusterId' column is not removed in 'User' table
it should be put to NULL
can anybody point me to a solution ?
thanks for your time
sc3*2