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 210E2104CC for ; Wed, 10 Apr 2013 15:26:13 +0000 (UTC) Received: (qmail 46186 invoked by uid 500); 10 Apr 2013 15:26:12 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 46167 invoked by uid 500); 10 Apr 2013 15:26:12 -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 46155 invoked by uid 99); 10 Apr 2013 15:26:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Apr 2013 15:26:12 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.203.51.209] (HELO smtpout8.voxtelecom.co.za) (209.203.51.209) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Apr 2013 15:26:06 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqoHADCDZVHEKQaEbGdsb2JhbABQsEyVPw4LCwgDCRQoBAMBAYIWAQEBA4EPBoFHh30ECJ1VoTmPM4MrA6ZChFk6 X-IronPort-AV: E=Sophos;i="4.87,447,1363125600"; d="scan'208";a="570624042" Received: from webmail.lantic.net (HELO mta02.zimbra.voxcore.co.za) ([196.41.6.132]) by smtpout.vox.co.za with ESMTP; 10 Apr 2013 17:25:41 +0200 Received: from localhost (localhost [127.0.0.1]) by mta02.zimbra.voxcore.co.za (Postfix) with ESMTP id 0B9701B9F07 for ; Wed, 10 Apr 2013 17:21:00 +0200 (SAST) X-Virus-Scanned: amavisd-new at mta02.zimbra.voxcore.co.za Received: from mta02.zimbra.voxcore.co.za ([127.0.0.1]) by localhost (mta02.zimbra.voxcore.co.za [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 9aQV7Prpe-8i for ; Wed, 10 Apr 2013 17:20:56 +0200 (SAST) Received: from webmail.xsinet.co.za (unknown [10.200.0.238]) by mta02.zimbra.voxcore.co.za (Postfix) with ESMTP id E1E2C1B9F0D for ; Wed, 10 Apr 2013 17:20:55 +0200 (SAST) Received: from 105.248.211.69 (SquirrelMail authenticated user dollj@xsinet.co.za) by webmail.xsinet.co.za with HTTP; Wed, 10 Apr 2013 17:25:37 +0200 (SAST) Message-ID: <2667.105.248.211.69.1365607537.squirrel@webmail.xsinet.co.za> Date: Wed, 10 Apr 2013 17:25:37 +0200 (SAST) Subject: Re: [ann] Apache Cayenne 3.1 goes beta 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 X-Priority: 3 (Normal) Importance: Normal Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi Robert >>> The primary key attributes are not displayed in the ObjEntity. Why >>> not? It is displayed in the [DbEntity?] >> >> By default Cayenne hides the primary key from the user. Typically this >> is what you want but you can easily expose it. > > How? 1. Select the ObjEntity, 2. Select the Attributes tab (on the right), 3. Click on the 1st icon on the toolbar under the Attributes tab, 4. Click on the DbAttribute cell of the new row and select the PK field, 5. Click on the ObjAttribute cell to give it a name and then specify the Java Type in the next cell. 6. Save. In your case you are done, since you are just modeling. If you were using Cayenne to produce classes then you would need to refresh them using: Tools, Generate Classes. Regards j