Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 36181 invoked from network); 4 Oct 2007 15:16:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Oct 2007 15:16:47 -0000 Received: (qmail 52939 invoked by uid 500); 4 Oct 2007 15:16:36 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 52906 invoked by uid 500); 4 Oct 2007 15:16:36 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 52896 invoked by uid 99); 4 Oct 2007 15:16:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Oct 2007 08:16:36 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kwsutter@gmail.com designates 209.85.146.182 as permitted sender) Received: from [209.85.146.182] (HELO wa-out-1112.google.com) (209.85.146.182) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Oct 2007 15:16:36 +0000 Received: by wa-out-1112.google.com with SMTP id m28so247733wag for ; Thu, 04 Oct 2007 08:16:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=nZGTqnejIJfz7qCmFqTKM3/jLSkov/7kkVXE1mTXtgY=; b=ERQpRN/qPWrx34SQF5nC3oAu93lt86EebNN10h2swTsPFPiOu2YqUFsYn0IczltEoDcRFwyqceKNaJpuO2VosgcAPL0GLddSJTn6m84x0gBubxxxxoeDwDt37P7xCA2W6CpjDzB+5ZSU97lj0xidBbDwK4QZr59qooCGct2Tex4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=IwNI/D3ZNJVXrVS4Z4PnlTkKawhzu/YpNVAt4YCsl6i+s7XGGqK94dkdWQJ200sZj73Ti+0SxL9bpYGoEe7UOkMeTPcTyxG29G8Cmat0cTZ6LFQK95+cMccyvFPpMgtTkz9UNjrQCCKjohBgI8qz/ly825H04375LWJztKlCebY= Received: by 10.114.196.1 with SMTP id t1mr684022waf.1191510974887; Thu, 04 Oct 2007 08:16:14 -0700 (PDT) Received: by 10.114.75.15 with HTTP; Thu, 4 Oct 2007 08:16:14 -0700 (PDT) Message-ID: <89c0c52c0710040816u74fc532fk86702fa0ca1847ba@mail.gmail.com> Date: Thu, 4 Oct 2007 10:16:14 -0500 From: "Kevin Sutter" To: dev@openjpa.apache.org Subject: Re: Lazy loading not working. In-Reply-To: <7262f25e0710040723x27a804d9o66b455d27ccbd743@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_29177_16925639.1191510974878" References: <13022684.post@talk.nabble.com> <13030513.post@talk.nabble.com> <13040881.post@talk.nabble.com> <7262f25e0710040723x27a804d9o66b455d27ccbd743@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_29177_16925639.1191510974878 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 10/4/07, Patrick Linskey wrote: > > > I believe that you can leave out the @Basic annotation for enums if > you'd prefer, as well. That is correct. @Basic is optional for enums. Kevin -Patrick > > On 10/4/07, rgarret wrote: > > > > Alex, > > > > I am enhancing all of my model classes at build time. I found a fixed > bug > > that pertains to my issue: > http://issues.apache.org/jira/browse/OPENJPA-347. > > After upgrading to the latest snapshot my OneToOne relationship behaved > > properly but the ManyToOne still eagerly fetched. I changed from > ManyToOne > > to Basic and now everything is working well. > > > > I'm not sure if declaring the relationship as basic is the right thing > to do > > as it really is ManyToOne. I have verified that retrieval works properly > but > > have yet to test persisting. > > > > Thanks for your help, > > Reece > > > > > > AlexD. wrote: > > > > > > Hallo, > > > > > > I hope that I'm right: you have to use Enhancement for this option... > > > > > > see > > > > http://openjpa.apache.org/docs/latest/manual/manual.html#ref_guide_pc_enhance > > > for details. > > > > > > Best regards, > > > Alex > > > > > > > -- > > View this message in context: > http://www.nabble.com/Lazy-loading-not-working.-tf4562936.html#a13040881 > > Sent from the OpenJPA Developers mailing list archive at Nabble.com. > > > > > > > -- > Patrick Linskey > 202 669 5907 > ------=_Part_29177_16925639.1191510974878--