Return-Path: Delivered-To: apmail-incubator-cayenne-user-archive@locus.apache.org Received: (qmail 26205 invoked from network); 8 Apr 2006 15:21:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Apr 2006 15:21:09 -0000 Received: (qmail 31699 invoked by uid 500); 8 Apr 2006 15:21:09 -0000 Delivered-To: apmail-incubator-cayenne-user-archive@incubator.apache.org Received: (qmail 31680 invoked by uid 500); 8 Apr 2006 15:21:09 -0000 Mailing-List: contact cayenne-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cayenne-user@incubator.apache.org Delivered-To: mailing list cayenne-user@incubator.apache.org Received: (qmail 31671 invoked by uid 99); 8 Apr 2006 15:21:08 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Apr 2006 08:21:08 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of mkienenb@gmail.com designates 64.233.182.188 as permitted sender) Received: from [64.233.182.188] (HELO nproxy.gmail.com) (64.233.182.188) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Apr 2006 08:21:08 -0700 Received: by nproxy.gmail.com with SMTP id d4so499556nfe for ; Sat, 08 Apr 2006 08:20:47 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=uaTBCTEdLlJCZEUfh18b/RqH2LTZG/t9q+hPTmeIWzVWp4A4+CyO6mgHM9eX20qrYoCY21aQUxVs6WnLT1IK4fML0IoAOUUeHbXaUkpmJYZGQSmnlMqi+LPX/ct48LtCJowcT3gPDv7VPZ1TOSV87OhksgWOwO/F93UkNn62REY= Received: by 10.48.246.8 with SMTP id t8mr836049nfh; Sat, 08 Apr 2006 08:20:44 -0700 (PDT) Received: by 10.48.216.7 with HTTP; Sat, 8 Apr 2006 08:20:44 -0700 (PDT) Message-ID: <8f985b960604080820j24e9f346l9403214941c1f399@mail.gmail.com> Date: Sat, 8 Apr 2006 11:20:44 -0400 From: "Mike Kienenberger" To: cayenne-user@incubator.apache.org Subject: Re: referential integrity errors In-Reply-To: <41C817BF-3441-495A-90CC-92C0CF7A003D@objectstyle.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <4436DCEE.3000205@maine.rr.com> <41C817BF-3441-495A-90CC-92C0CF7A003D@objectstyle.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > 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 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.