Return-Path: Delivered-To: apmail-incubator-cayenne-dev-archive@locus.apache.org Received: (qmail 13145 invoked from network); 30 Sep 2006 01:53:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Sep 2006 01:53:22 -0000 Received: (qmail 70177 invoked by uid 500); 30 Sep 2006 01:53:22 -0000 Delivered-To: apmail-incubator-cayenne-dev-archive@incubator.apache.org Received: (qmail 70160 invoked by uid 500); 30 Sep 2006 01:53:22 -0000 Mailing-List: contact cayenne-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cayenne-dev@incubator.apache.org Delivered-To: mailing list cayenne-dev@incubator.apache.org Received: (qmail 70151 invoked by uid 99); 30 Sep 2006 01:53:22 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Sep 2006 18:53:22 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from [64.124.179.102] ([64.124.179.102:36063] helo=polatsk.objectstyle.org) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id DE/A3-21606-E0ECD154 for ; Fri, 29 Sep 2006 18:53:20 -0700 Received: (qmail 18152 invoked from network); 30 Sep 2006 01:53:16 -0000 Received: from unknown (HELO ????c???IPv6:::1?) (127.0.0.1) by localhost with SMTP; 30 Sep 2006 01:53:16 -0000 Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: References: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <352E8534-E20F-4428-B51B-58D41A353337@objectstyle.org> Content-Transfer-Encoding: 7bit From: Andrus Adamchik Subject: Re: ROP: how to do client side validation Date: Fri, 29 Sep 2006 21:53:17 -0400 To: cayenne-dev@incubator.apache.org X-Mailer: Apple Mail (2.752.2) X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Probably need to make those a part of ObjAttribute/ObjRelationship. On the server this will be resolved by reading the underlying DbAttribute. On the client this can simply be an Obj* ivar. Andrus On Sep 29, 2006, at 6:27 PM, Tore Halset wrote: > Hello. > > I want to do client side validation before commit. My plan was to > use DbEntity/DbAttribute to find "maxSize" and "mandatory", but > DbEntity/DbAttribute are not sent to the client. I understand why > those objects are not sent to the client, but "maxSize" and > "mandatory" should perhaps be availiable to the client? > > Any idea how to solve this? Do I need a roundtrip to the server? > > The reason for doing this is that I want to try key-value- > validation in CocoaCayenne. > > - Tore. >