Hi, just have a question related to lazy load.
I have a class, which has 1 set for relations among objects.
when I load the class, I don't want to load the relation set.
1. when I do the update, do I have to load relation set. (I don't want to update relation set as well).
e.g.
loadMyClass(class, relationSetFlag = false);
updateMyClass(class)
(as right now I get lazy load error)
So I guess this might work
loadMyClass(class, false);
class.setRelationSet(null);
updateMyClass(class)
2. how about delete?
If I don't load the relation set, when I delete the class, will the relation to be deleted? I want to them to be deleted.
Thanks much.
|