Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 42846 invoked from network); 22 Jan 2009 19:47:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Jan 2009 19:47:30 -0000 Received: (qmail 18005 invoked by uid 500); 22 Jan 2009 19:47:30 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 17991 invoked by uid 500); 22 Jan 2009 19:47:29 -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 17980 invoked by uid 99); 22 Jan 2009 19:47:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jan 2009 11:47:29 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [62.179.121.33] (HELO viefep13-int.chello.at) (62.179.121.33) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jan 2009 19:47:20 +0000 Received: from edge04.upc.biz ([192.168.13.239]) by viefep13-int.chello.at (InterMail vM.7.09.01.00 201-2219-108-20080618) with ESMTP id <20090122194659.UFPX18389.viefep13-int.chello.at@edge04.upc.biz> for ; Thu, 22 Jan 2009 20:46:59 +0100 Received: from [192.168.9.10] ([80.218.137.143]) by edge04.upc.biz with edge id 6jmx1b05x35oxq804jmzxG; Thu, 22 Jan 2009 20:46:59 +0100 X-SourceIP: 80.218.137.143 Message-ID: <4978CD38.90400@hispeed.ch> Date: Thu, 22 Jan 2009 20:47:04 +0100 From: wwwebi User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: user@cayenne.apache.org Subject: Mapping primary keys getter methods Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, is there a possibility to create for all objects a getter method on the primary key fields within the process of reverse engineering ? I have a legacy database where the primary keys are used in a similar way as a passport no and as I need it for 100+ tables I wondered if I could not at least get a getter method of the primary key fields during reverse engineering. Setting it afterwards following this faq http://cwiki.apache.org/CAY/mapping-primary-keys.html is too time consuming. I don't see even an issue only with a getter method. If it's not possible within the modeler I would certainly like to see this as an option during reverse engineering in the future :-) Cheers, Martin