cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Kienenberger" <mkien...@gmail.com>
Subject Re: referential integrity errors
Date Sat, 08 Apr 2006 15:20:44 GMT
> 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 <andrus@objectstyle.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.

Mime
View raw message