Return-Path: Delivered-To: apmail-incubator-cayenne-user-archive@locus.apache.org Received: (qmail 37898 invoked from network); 27 Nov 2006 19:12:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Nov 2006 19:12:34 -0000 Received: (qmail 16875 invoked by uid 500); 27 Nov 2006 19:12:43 -0000 Delivered-To: apmail-incubator-cayenne-user-archive@incubator.apache.org Received: (qmail 16610 invoked by uid 500); 27 Nov 2006 19:12:42 -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 16601 invoked by uid 99); 27 Nov 2006 19:12:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Nov 2006 11:12:42 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [69.59.195.20] (HELO pyramid-01.kattare.com) (69.59.195.20) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Nov 2006 11:12:30 -0800 Received: from [172.17.3.115] (nhlfw1.nhl.com [209.191.174.4] (may be forged)) (authenticated bits=0) by pyramid-01.kattare.com (8.13.6/8.13.6) with ESMTP id kARJC8A2029361 for ; Mon, 27 Nov 2006 11:12:09 -0800 Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: References: <456B20E1.1080602@maine.rr.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <3FD24A9D-E17F-455B-B77E-46FD3B63CEF6@centralparksoftware.com> Content-Transfer-Encoding: 7bit From: Matt Kerr Subject: Re: can't modify relationships in validateForUpdate()? Date: Mon, 27 Nov 2006 14:11:55 -0500 To: cayenne-user@incubator.apache.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org trying to recall .. so, i would double check this, but -- > Perhaps this is because of my WO/EOF background, but I had always > assumed that modifying anything in the validate* methods would be a > Bad Thing and never tried doing it. is this because WO/EOF specifically guides you *not* to put any side- effect code into the validate* methods. but i want to say this was ok .. since there were other delegate methods to tidy up before validateFor* was invoked .. (now - if i could just remember which one .. hmm. is that right?) > I can't say I ever read it in regards to Cayenne, but it feels like > the right thing to me. > Not sure why it changed in behavior, though. in cayenne -- there is no equivalent delegate .. and i believe the right/best way to handle this situation is to implement the side- effects in validateFor*(). -mk