Return-Path: X-Original-To: apmail-cayenne-user-archive@www.apache.org Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4E5BDD4A4 for ; Fri, 19 Oct 2012 09:16:43 +0000 (UTC) Received: (qmail 77253 invoked by uid 500); 19 Oct 2012 09:16:43 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 76850 invoked by uid 500); 19 Oct 2012 09:16:37 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 76787 invoked by uid 99); 19 Oct 2012 09:16:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Oct 2012 09:16:35 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [41.193.4.188] (HELO smtpout9.voxtelecom.co.za) (41.193.4.188) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Oct 2012 09:16:25 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApwGAOAZgVDEKQangWdsb2JhbABFhSmnWpJQAQMBAoEFIwEBFiYnglkBWxMngROHcQicCqFUjGiBIoEagyMDm3WIZ4Q8 X-IronPort-AV: E=Sophos;i="4.80,612,1344204000"; d="scan'208";a="501598265" Received: from unknown (HELO webmail.xsinet.co.za) ([196.41.6.167]) by smtpout.vox.co.za with ESMTP; 19 Oct 2012 11:16:01 +0200 Received: from 209.212.102.102 (proxying for 10.2.7.77, 10.2.7.251) (SquirrelMail authenticated user dollj@xsinet.co.za) by webmail.xsinet.co.za with HTTP; Fri, 19 Oct 2012 11:16:01 +0200 (SAST) Message-ID: <3571.209.212.102.102.1350638161.squirrel@webmail.xsinet.co.za> Date: Fri, 19 Oct 2012 11:16:01 +0200 (SAST) Subject: Metadata access From: dollj@xsinet.co.za To: user@cayenne.apache.org User-Agent: SquirrelMail/1.4.11 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Checked: Checked by ClamAV on apache.org Hi How can one find out through the API if a CayenneDataObject property (field/column) is Mandatory or not ? Currently using 3.1B1 i'm doing something like the following: attribMap = Cayenne.getObjEntity( dbDataObj ).getAttributeMap(); attribMap.get( fieldPropertyName ).isMandatory(); Is this the correct way of going about it ? Is there a way of getting this info through the CayenneDataObject itself ? Thanks