Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 47760 invoked from network); 3 Jun 2008 16:50:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jun 2008 16:50:10 -0000 Received: (qmail 70507 invoked by uid 500); 3 Jun 2008 16:50:12 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 70497 invoked by uid 500); 3 Jun 2008 16:50:12 -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 70486 invoked by uid 99); 3 Jun 2008 16:50:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jun 2008 09:50:12 -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 nirwan84@gmail.com designates 209.85.198.247 as permitted sender) Received: from [209.85.198.247] (HELO rv-out-0708.google.com) (209.85.198.247) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jun 2008 16:49:23 +0000 Received: by rv-out-0708.google.com with SMTP id c5so1353848rvf.52 for ; Tue, 03 Jun 2008 09:49:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=gesJvhaNdsfOw0nJ2IJ0So/6kcBCQIIVdnOjpRvdVjA=; b=LK7gSmLRNIoQUKsiB+yMasWPgj4Ih6WhKVQtzk3MKuney9Y5GyVrstfBrInPtb7CgZFpWR+li8SfB6kcumeKa7yoOmow5wtRmGbdauky2MG8OF/x9N7+0ZZ8qkHEOUVHkkG+vnueFLA8SqHNpP4S5kR6nWDO3KhW79OIgHW6iF4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=RnaN3VKso/J3/6pk3kwuNTGcfFCEvdptXIIDI1LYxok9W5p4GdJxuLXacSuoGbItBiI6+MEnWWN+wtge7Eu3gWPg+Ah0FklzotpdItYIR5KMGzOKCgEHp727y1yum+hOUl8fZKeRdN+iEvx0MAUZmWMSQcRqS1zoLfsSdDUaeRk= Received: by 10.140.251.1 with SMTP id y1mr5957835rvh.149.1212511780424; Tue, 03 Jun 2008 09:49:40 -0700 (PDT) Received: by 10.141.44.3 with HTTP; Tue, 3 Jun 2008 09:49:40 -0700 (PDT) Message-ID: <7c2bc3da0806030949j4fa4eeb7ya416fb883190e1f4@mail.gmail.com> Date: Tue, 3 Jun 2008 18:49:40 +0200 From: "=?ISO-8859-2?Q?Micha=B3_Morzywo=B3ek?=" To: user@cayenne.apache.org Subject: lazy loading - easy question MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8461_31660800.1212511780413" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_8461_31660800.1212511780413 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Let's say i got class A with collection of class B in it. When i read objact a (of class A) from db the collection is not loaded at first(due to lazy loading). 1. How can i disable lazy loading - so the collection would be always loaded? 2. How to use resolveFault() or the new prepareForAccess() method to load the collection? Looked into the documentation but i didn't find any explanation :( Thank you for all your help Mike ------=_Part_8461_31660800.1212511780413--