Re: Relationship Fetching Behavior and Case Sensetivity

From: Bryan Lewis (jbryanlewi..mail.com)
Date: Thu May 27 2010 - 13:17:54 UTC

  • Next message: Joe Baldwin: "Re: Cayenne Supported DBCP Properties"

    Tossing in my vote... yes, it would be nice to have an easier way to
    override the fault resolution. We've had referential integrity problems for
    a long time, dealing with a legacy database. My fix has been to subclass
    DataContext and catch the FaultFailureException in prepareForAccess().
    That's not so bad, but pluggable would be a bit nicer.

    On Thu, May 27, 2010 at 4:20 AM, Andrus Adamchik <andru..bjectstyle.org>wrote:

    > Do you have DB operation logs for both cases and are they generating the
    > same query and bringing back 1 object?
    >
    > If that's the case (and I suspect it is), there could be something about
    > ObjectId matching in memory (e.g. when we guess an ObjectId with incorrect
    > case, and then bring back a new object that has ObjectId with DB-provided
    > case, "equals" method no longer works on ObjectIds and we are making some
    > incorrect conjectures...
    >
    > On a general note, as I personally had to deal with referential integrity
    > issues a lot myself, I feel like having a pluggable fault resolution
    > strategy might be a good idea going forward. Maybe something for 3.1 (which
    > is DI-based and can help making things pluggable).
    >
    > Andrus
    >
    >



    This archive was generated by hypermail 2.0.0 : Thu May 27 2010 - 13:18:23 UTC