Mailing List webobjects-dev@wocommunity.org Message #550
จาก: Theodore Petrosky <tedpet5@yahoo.com>
หัวเรื่อง: validateForSave() question
วันที่: Mon, 23 Feb 2026 17:50:08 -0500
ถึง: <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.

สมัครสมาชิก (ป้อนข้อมูล) สมัครสมาชิก (ไดเจสท์) สมัครสมาชิก (ดัชนี) ยกเลิกสมาชิก ส่งเมล์ถึงลิสต์มาสเตอร์