Re: Working with Transient Objects

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Wed Jun 30 2004 - 14:01:23 EDT

  • Next message: Andrus Adamchik: "Re: Rich Client and other J2EE related Qs"

    > Ok, before I run down this route, which will be costly,

    I argue that it won't. Collection decorators are lazy and can be optimized
    for your use without changing public object API.

    The most important aspect of this is that you are not trying to trick
    Cayenne, instead you just take Cayenne out of the picture when your
    objects are truly TRANSIENT. This is as clean as it can get.

    Your solution with forcing TRANSIENT has a problem that an object will
    still be injected into the ObjectStore, and Cayenne can get really
    confused at times. This will be prone to lifecycle changes in the future
    versions of Cayenne, and will probably not work in the current version as
    well (or rather will require more Cayenne hacks than is obvious right
    now).

    Andrus



    This archive was generated by hypermail 2.0.0 : Wed Jun 30 2004 - 14:01:24 EDT