Peter Jeszenszky wrote:

That is all. The result is that when you load a Foo object you get its
dependent Bar objects in the same order.

Why wouldn't this work?

public void setBars(java.util.Collection c) {
_bars = new ArrayList(c);
Collections.sort(bars, INDEX_ORDER);
}

Better yet, you could use a special list that maintains sort order instead of a generic List like ArrayList.

Maybe I'm missing something...

-- Charles

----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev



Reply via email to