Re: Persistance States and the reading of Properties

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Tue Mar 30 2004 - 12:17:37 EST

  • Next message: Andrus Adamchik: "Re: Persistance States and the reading of Properties"

    On Mar 30, 2004, at 12:12 PM, Bret Gregory wrote:

    > There is a note that setting the object to transient doesn't seem
    > right in
    > the CayenneDataObject class at line 199-200. I agree that that
    > doesn't seem
    > right, but also the fact that reading a property/relationship
    > returning a
    > hollow object when the relationship/property doesn't exist doesn't seem
    > right either.

    Yes it does. If a source object row has an FK to a related object,
    related object must be there! Otherwise you have a referential
    integrity problem with your DB. Is this related to your earlier
    problem?

    Andrus



    This archive was generated by hypermail 2.0.0 : Tue Mar 30 2004 - 12:17:42 EST