Re: referential integrity errors

From: Mike Kienenberger (mkienen..mail.com)
Date: Sat Apr 08 2006 - 11:20:44 EDT

  • Next message: Tomi NA: "Re: reverse engineering a postgresql database: no relationships detected?"

    > On Apr 8, 2006, at 1:43 AM, Bryan Lewis wrote:
    > > We occasionally get referential integrity errors from some old legacy
    > > data in our database. When we converted to Cayenne, I duplicated the
    > > old behavior by overriding resolveFault() in our DataObject superclass.

    On 4/8/06, Andrus Adamchik <andru..bjectstyle.org> wrote:
    > Here is a fairly easy way to subclass DataContext - in the Modeler
    > you can set a user defined DataContextFactory for a DataDomain.
    >
    > In the future catching bad faults maybe a good candidate for
    > including in the context delegate interface.

    I like this idea. In the past, I had to wrap code that referenced
    relationship methods with a try/catch to detect these.



    This archive was generated by hypermail 2.0.0 : Sat Apr 08 2006 - 11:21:10 EDT