I have classes with convenience functions that manage
bidirectional associations
public void addFoo(Foo f) {
foos.add(f);
f.addBar(this);
}
At one point I thought Wicket was using my add/remove convenience
functions (since I'd provided no get/set), but I now realize that it's using
reflection to get to the (private) list.
I could write get(list) & set(list) convenience functions. It seems a little
tedious, though. Are there any utilities that would help?
Will clearing and adding everything on my list generate unnecessary DB
operations? Must I walk the lists for changes?
I haven't run into any real issues yet based on my add/remove routines
not being used. Does lazy loading cover for that in some cases?
Thanks,
-troy
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]