Re: [suggestion] unmodifiable toMany lists

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Wed Nov 11 2009 - 11:20:06 EST

  • Next message: Andrey Razumovsky: "Re: Build failed in Hudson: Cayenne-trunk » JDK 1.6 (latest) #30"

    On Nov 11, 2009, at 5:44 PM, Kevin Menard wrote:

    >
    > Don't get me wrong, it's wholly a human problem. But, false
    > expectations can lead to tedious debugging sessions and adoptions of
    > seemingly tenuous programming habits.

    This is why I am in favor of a single strategy that can be clearly
    explained in the docs. IMO the only problem today is a mismatch
    between server-side and ROP behavior (if I am not mistaken ROP allows
    collection.add/remove, while server-side requires you to use generated
    methods addTo/removeFrom). Otherwise I think we are consistent.

    Wrapping collections into immutable wrappers is not something I'd like
    Cayenne to do. Let the users do it if they want to, either in the
    code, or via a very simple customized cgen template.

    Andrus



    This archive was generated by hypermail 2.0.0 : Wed Nov 11 2009 - 11:20:39 EST