Re: Nested ROP contexts and relationships

From: Andrey Razumovsky (razumovsky.andre..mail.com)
Date: Tue Nov 24 2009 - 09:33:01 EST

  • Next message: Michael Gentry: "Re: Accessing object metadata and other utilities"

    For POJOs and DO's it can work same as non-silent one, and for ROPs it will
    differ

    2009/11/24 Andrey Razumovsky <razumovsky.andre..mail.com>

    > Now returning to my main goal - it is to allow PersistentObject subclasses
    > work correctly on server and cannot be done without changing
    > PersistentObjectHolder's event procession.
    > The only reason that we have those PropertyChangeProcessingStrategy and
    > many threadLocals all around is that PersistentObject-collections must
    > notify context unlike ToMany-collections. So, if we are setting reverse arc
    > via add() or remove() we get infinite loops an other nasty things.
    > We already have readProperty/readPropertyDirectly pair for simple
    > properties, where readPropertyDirectly is "silent". My question is - why
    > can't we have "silent" addTargetDirectly and removeTargetDirectly for
    > to-many properties? This will allow as to manage event cycles. I think this
    > will eliminate threadlocals and make Cayenne code simpler and safer
    >

    -- 
    Andrey
    



    This archive was generated by hypermail 2.0.0 : Tue Nov 24 2009 - 09:33:51 EST