X-Junk-Score: 0 [] X-KAS-Score: 0 [] Return-Path: Received: from mail-108-mta90.mxroute.com ([136.175.108.90] verified) by selbstdenker.ag (CommuniGate Pro SMTP 6.3.18) with ESMTPS id 35338548 for webobjects-dev@wocommunity.org; Tue, 24 Feb 2026 01:53:16 +0100 Received-SPF: pass receiver=post.selbstdenker.com; client-ip=136.175.108.90; envelope-from=aaron@chatnbike.com Received: from filter006.mxroute.com ([136.175.111.3] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta90.mxroute.com (ZoneMTA) with ESMTPSA id 19c8d22942c0007228.001 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Tue, 24 Feb 2026 00:52:59 +0000 X-Zone-Loop: 7587a2233f2b78227bf990fa79de50fb2c8ac6e4265a X-Originating-IP: [136.175.111.3] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=chatnbike.com; s=x; h=To:References:Content-Transfer-Encoding:Cc:Date: In-Reply-To:From:Subject:Mime-Version:Content-Type:Sender:Reply-To:Content-ID :Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To: Resent-Cc:Resent-Message-ID; bh=pgMPStVUW5abfUnM2g2JrdS6mdsDIV1jfgklzIyEkZA=; b=XE4ipTIc+cpU3L/Sq2zToTog50dfRQHFt7KCA8+TtsvI0uMmsJUxigElTz8bKRKLP9frQKk5S4G VZbh2mAsZsHDpQD4lKXoU2NYPeLq+ylJ4eARDv7jguIqWrfqIU1eHQuTJxOO4gCNrvWHZiNlGCjeq eswV1L7tTUwTwIqwoM1IYkAMAt1Af1bhlGSJAQra9X8v3HH2tdtBZh06PzkUQJ2y1JpM5cVGmWhOn DY9Pu6AZrnaPVnIF87fVX9fhIfM4rY7/ZLBXBr40judL/sGv2Hdzrqvp/gwDRUhcHarZGfc94ZXWw O6HC1wwwdwIU+BidxT7gxRjuEYsc7tHAbu4g==; Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.10\)) Subject: Re: [WO-DEV] validateForSave() question From: Aaron Rosenzweig In-Reply-To: Date: Mon, 23 Feb 2026 19:52:53 -0500 Cc: Theodore Petrosky Content-Transfer-Encoding: quoted-printable Message-Id: <53AD1CD3-B098-4115-8197-8BCADC0E311D@chatnbike.com> References: To: WebObjects & WOnder Development X-Authenticated-Id: aaron@chatnbike.com If it=E2=80=99s strictly a toMany relationship, I don=E2=80=99t see how = they could be added twice.=20 Is it a many-to-many? In that case, the same person could be added = twice. In that case, I=E2=80=99d put the validateForInsert() on the join = table. I=E2=80=99d try to find at least one other join table pointing to = the same person and entity. > On Feb 23, 2026, at 5:50 PM, Theodore Petrosky = wrote: >=20 > I am trying to add a check in validateForSave. my entity has a toMany = relation with my Person entity. I need to check if a person has been = added twice. >=20 > So basically, if Jon has been added twice throw the validation = exception. so I guess, here is an array of persons, are they all unique? >=20 > Am I being clear? >=20 > public void validateForSave() throws NSValidation.ValidationException = { >=20 > Ted >=20 > BTW, I tried to send this to webobjects-dev@lists.apple.com, but it = looks like it has been down for a couple of days or longer. >=20 >=20 > ############################################################# > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to = > To switch to the INDEX mode, E-mail to = > Send administrative queries to = >=20