Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 29CDD200C02 for ; Fri, 20 Jan 2017 16:50:37 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 276AE160B48; Fri, 20 Jan 2017 15:50:37 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 71120160B39 for ; Fri, 20 Jan 2017 16:50:36 +0100 (CET) Received: (qmail 14057 invoked by uid 500); 20 Jan 2017 15:50:35 -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 14045 invoked by uid 99); 20 Jan 2017 15:50:35 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jan 2017 15:50:35 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id CFD1B1A01EC for ; Fri, 20 Jan 2017 15:50:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id ZIr21lklaVvp for ; Fri, 20 Jan 2017 15:50:34 +0000 (UTC) Received: from mail-yb0-f170.google.com (mail-yb0-f170.google.com [209.85.213.170]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id AC6AD5F27D for ; Fri, 20 Jan 2017 15:50:33 +0000 (UTC) Received: by mail-yb0-f170.google.com with SMTP id w194so59225808ybe.0 for ; Fri, 20 Jan 2017 07:50:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=su9Rt3OVWz1oN2t7BwdJPPAkLPRbecqvmLmYFRVWJn8=; b=h0C895zRr0rXKjKeqwzCSUnO4FiMwLaiMRetowVwg1nBOmva+cFoJy+AvvdNVCWzmi OMEEc2xYN5v488MyzSKaXKyEUfwiWz1laRvKD/2YZPBMu98jq+4y8OXbvY8hs7enzBxP CsQLosVUTigepBgXT+tYL2asBip67q9R//Ev/e4665tKawIGPJUkvklrGv/pMovu8B+N jHl858FfV+oJPL00onKotdm7NqGAuuwNwbH32R8OCrc2w0tyVYwGBkQKhUCic69+ENft OJySGkDS1SvCMo708xIT1s4cYtz+t/TWtlcaQXNQcarRftcf8bJ703XSvOB/GwLK996A ZPEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=su9Rt3OVWz1oN2t7BwdJPPAkLPRbecqvmLmYFRVWJn8=; b=E098akJNwrUmfFk6CZ3oBamteEGEiiJRspV0628Hi64pJyamhukuNbvldmGGLuW5rS YCoEmFVVsJe4cdUhRv+b1T1Ba2Bfzk+xek4hiyVO/4zTGvNnuktNJiwjOUX1fuidBcmB 8CC6zRBPqYbsQbORj9JuMZQGhc+5KhuYY2S9FBOH5UiE3Xa45oGZNd+NYRp7H6KEGyFa QEQ/HBha11ckr5CPNT5++d3AqqO9Szc93WDfAmAv+wk33nGz05MuG/f5M98AKZXe5Oo7 gA6cyBO/kaB89DklZwWQDtk6SnADU0OGNa9zGaEoKZwY6A4UsiCIBNZWzvujMXP/iMaR EYqA== X-Gm-Message-State: AIkVDXJJDIEDNGKmbnRgTRnSOAfDyZJ66zVqcSvi2vXkD2neBLZ7MPw1FVH/qioQNd8ueqKQmFJQNRbLJLaOTg== X-Received: by 10.200.1.11 with SMTP id e11mr12077485qtg.85.1484927433202; Fri, 20 Jan 2017 07:50:33 -0800 (PST) MIME-Version: 1.0 Received: by 10.237.50.37 with HTTP; Fri, 20 Jan 2017 07:50:32 -0800 (PST) From: sagar bijlwan Date: Fri, 20 Jan 2017 15:50:32 +0000 Message-ID: Subject: Issue while accessing primary key in cayenne 4.0.M4 To: user@cayenne.apache.org Content-Type: multipart/alternative; boundary=f403045f39782c60320546889c56 archived-at: Fri, 20 Jan 2017 15:50:37 -0000 --f403045f39782c60320546889c56 Content-Type: text/plain; charset=UTF-8 Hello, In cayenne 3 primary key column is also available as a property in auto generated java model so it can be easily accessed using setters and getters, However, it seems same can't be said about cayenne 4. When I am generating Java model of the same DB table, I am only getting PK column ( and not the new "Property" type for the primary key) thus I don't have any setters and getters for the primary key. Am I missing something here as I don't seem to recall doing anything special in cayenne 3? Or should I do anything extra in cayenne 4 to make it work? Any insight into this would be appreciated. Regards Sagar --f403045f39782c60320546889c56--