If I have the following arrangement
Code:
public class Target {
Target target;
Set targets = new HashSet();
public void addTarget(Target target) {
targets.add(target);
target.add(this);
}
pubilic void removeTarget() {
targets.remove(target);
target.remove(this);
}
}
If the set of targets are loaded lazily, is it possible to delete a Target without first loading all the other targets that it references into session i.e. is there a single query that could delete the object and unhook it from all of it's targets?