Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 1146 invoked from network); 14 Oct 2005 17:12:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Oct 2005 17:12:58 -0000 Received: (qmail 9731 invoked by uid 500); 14 Oct 2005 17:12:28 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 8852 invoked by uid 500); 14 Oct 2005 17:12:23 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 7205 invoked by uid 99); 14 Oct 2005 17:12:07 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Oct 2005 10:12:07 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ammulder@gmail.com designates 64.233.162.202 as permitted sender) Received: from [64.233.162.202] (HELO zproxy.gmail.com) (64.233.162.202) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Oct 2005 10:06:03 -0700 Received: by zproxy.gmail.com with SMTP id 9so774214nzo for ; Fri, 14 Oct 2005 10:05:41 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=V5zsC/1bP/K+EJBxNXJW0ITFVDqklWKhCjaNDUzRNr3+Plp7XrjW+tJcs6FgOav3DBdI1wTVI/xnba2ti71F5HoF1TuHPn44GTsNhCSW1HFYDmGG+6XXSixtkWSDYS2JmyBgF8ZKPK7Il8tXRaz1uM462XS4Jn5WP8YsMf5juTE= Received: by 10.36.221.51 with SMTP id t51mr1272128nzg; Fri, 14 Oct 2005 10:05:41 -0700 (PDT) Received: by 10.37.13.64 with HTTP; Fri, 14 Oct 2005 10:05:41 -0700 (PDT) Message-ID: <74e15baa0510141005g9ae4df7v18d0eb3619a7fb9f@mail.gmail.com> Date: Fri, 14 Oct 2005 13:05:41 -0400 From: Aaron Mulder Sender: ammulder@gmail.com To: dev@geronimo.apache.org Subject: CMR Setters & ejbCreate MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N So I've noticed that if I call a setter related to a CMR in ejbCreate, it blows up: Caused by: java.lang.IllegalStateException: Identity not available at org.tranql.cache.CacheRow.getId(CacheRow.java:163) at org.tranql.ejb.OneToManyCMR.set(OneToManyCMR.java:49) ... The rest is slightly different depending on whether it's a CMR setter or a CMP setter that happens to be for the foreign key of the CMR. Anyway, calling the same thing in ejbPostCreate works fine. (My scenario is, I have tables like Parent(ID) and child(ID, PARENT_ID not null) so I have to set the parent_id on the child during the creation process.) Does the spec say something about not setting CMR fields in ejbCreate and so I'm trying to do something wrong? Or should we support that? Thanks, Aaron