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 A8BF89E94 for ; Mon, 5 Mar 2012 16:10:41 +0000 (UTC) Received: (qmail 57869 invoked by uid 500); 5 Mar 2012 16:10:41 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 57834 invoked by uid 500); 5 Mar 2012 16:10:41 -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 57826 invoked by uid 99); 5 Mar 2012 16:10:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2012 16:10:41 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2012 16:10:35 +0000 Received: from ben.nabble.com ([192.168.236.152]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1S4aUI-0007Ue-Bw for user@cayenne.apache.org; Mon, 05 Mar 2012 08:10:14 -0800 Date: Mon, 5 Mar 2012 08:10:14 -0800 (PST) From: cghersi To: user@cayenne.apache.org Message-ID: <1330963814361-3801088.post@n3.nabble.com> In-Reply-To: <13F3F8D2-5297-41A0-927F-C98318FB7954@objectstyle.org> References: <1330963047095-3801043.post@n3.nabble.com> <13F3F8D2-5297-41A0-927F-C98318FB7954@objectstyle.org> Subject: Re: Temporary ID hasn't been replaced on commit MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Andrus, thank you for the fast reply! The DB is MySQL. The table is created with a code like this: CREATE TABLE PhysicalNode (AdditionalArgs VARCHAR(4000) NULL, BatteryLevel SMALLINT NULL, CoordX DOUBLE NOT NULL, CoordY DOUBLE NOT NULL, CoordZ DOUBLE NOT NULL, Creation BIGINT NOT NULL, CurrentPwrSrc SMALLINT NULL, ExpectedLifeTime BIGINT NULL, Id INT NOT NULL AUTO_INCREMENT, IsOnline BOOL NOT NULL, Label VARCHAR(255) NOT NULL, LastBatteryChange BIGINT NULL, LastMaintenance BIGINT NULL, LastStatusTime BIGINT NULL, MacAddress LONGBLOB NOT NULL, NSAP LONGBLOB NOT NULL, NetworkId INT NOT NULL, SignalRange FLOAT NULL, Type SMALLINT NOT NULL, WakeupPolicy SMALLINT NULL, PRIMARY KEY (Id)) ENGINE=InnoDB ; You can see the PK is "Id" and it is AUTO_INCREMENT. -- View this message in context: http://cayenne.195.n3.nabble.com/Temporary-ID-hasn-t-been-replaced-on-commit-tp3801043p3801088.html Sent from the Cayenne - User mailing list archive at Nabble.com.