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 DADF8200BAD for ; Tue, 25 Oct 2016 15:05:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D9CBC160AF3; Tue, 25 Oct 2016 13:05:22 +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 2D7A9160AE6 for ; Tue, 25 Oct 2016 15:05:22 +0200 (CEST) Received: (qmail 9434 invoked by uid 500); 25 Oct 2016 13:05:21 -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 9415 invoked by uid 99); 25 Oct 2016 13:05:21 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Oct 2016 13:05:21 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 99EAFC1262 for ; Tue, 25 Oct 2016 13:05:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.972 X-Spam-Level: X-Spam-Status: No, score=0.972 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id txpW44AXtsIv for ; Tue, 25 Oct 2016 13:05:16 +0000 (UTC) Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 6E15B5FC27 for ; Tue, 25 Oct 2016 13:05:16 +0000 (UTC) Received: from mben.nabble.com (unknown [162.253.133.72]) by mwork.nabble.com (Postfix) with ESMTP id 7D7D06064C3BA for ; Tue, 25 Oct 2016 06:05:07 -0700 (MST) Date: Tue, 25 Oct 2016 06:05:07 -0700 (MST) From: fael To: user@cayenne.apache.org Message-ID: <1477400707522-4028228.post@n3.nabble.com> Subject: [4.0M3-SNAPSHOT] Modeller and UNSIGNED BIGINT MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Tue, 25 Oct 2016 13:05:23 -0000 Hello all, I was using Cayenne's baked in AUTO_PK_SUPPORT up till very recently. Have now switched to use database-generated keys - I'm using the MySQL driver. My keys are all defined in MySQL as BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT. Foreign key fields are defined as BIGINT(20) UNSIGNED (sometimes NOT NULL). I was really pleased to see that for new DbEntity items when I correctly set the PK Generation Strategy an 'AUTO_INCREMENT' is added to the generated SQL when migrating!! I did hit a wall when trying to set a DbEntity attribute type to be specifically an UNSIGNED BIGINT; can't seem to do this and therefore can't use the modeller to migrate for my UNSIGNED BIGINT. Even if this may not be something worth adding in - I wondered whether there was any way I might override or configure to achieve this. Many thanks, Peter -- View this message in context: http://cayenne.195.n3.nabble.com/4-0M3-SNAPSHOT-Modeller-and-UNSIGNED-BIGINT-tp4028228.html Sent from the Cayenne - User mailing list archive at Nabble.com.