Return-Path: Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: (qmail 27004 invoked from network); 5 Mar 2009 09:23:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Mar 2009 09:23:55 -0000 Received: (qmail 19272 invoked by uid 500); 5 Mar 2009 09:23:54 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 19251 invoked by uid 500); 5 Mar 2009 09:23:54 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 19240 invoked by uid 99); 5 Mar 2009 09:23:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Mar 2009 01:23:54 -0800 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists+1214986160035-208411@n2.nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Mar 2009 09:23:45 +0000 Received: from tervel.nabble.com ([192.168.236.150]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Lf9nZ-0004yo-2z for users@openjpa.apache.org; Thu, 05 Mar 2009 01:23:25 -0800 Message-ID: <1236245005077-2428285.post@n2.nabble.com> Date: Thu, 5 Mar 2009 01:23:25 -0800 (PST) From: RamAESIS To: users@openjpa.apache.org Subject: OneToMany lazy loading MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: rsankar@hcl.in X-Virus-Checked: Checked by ClamAV on apache.org Hi, I am trying to lazy load a child collection in a one-to-many relationship as shown below: @OneToMany(cascade=CascadeType.ALL,fetch=FetchType.LAZY) @ElementJoinColumns({ @ElementJoinColumn(name="ColA",referencedColumnName="ColX"), @ElementJoinColumn(name="ColB",referencedColumnName="ColY"), @ElementJoinColumn(name="ColC",referencedColumnName="ColZ") }) public Collection TableB_Obj = new HashSet(); But after accessing the child collection also it is still NULL, EAGER mode works properly. Any guess or guidance in this issue is highly appreciated. Thanks in advance. Regards, Ram -- View this message in context: http://n2.nabble.com/OneToMany-lazy-loading-tp2428285p2428285.html Sent from the OpenJPA Users mailing list archive at Nabble.com.