Mailing List webobjects-dev@wocommunity.org Message #550
From: Theodore Petrosky <tedpet5@yahoo.com>
Subject: validateForSave() question
Date: Mon, 23 Feb 2026 17:50:08 -0500
To: <webobjects-dev@wocommunity.org>
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.

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?

Am I being clear?

public void validateForSave() throws NSValidation.ValidationException {

Ted

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.

Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to Listmaster