[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [eclipselink-users] How to avoid retrieving an OneToMany collection?
|
- From: Rich Livingstone <nabble@xxxxxxxxxxxxxx>
- Date: Wed, 7 Jan 2009 11:31:35 -0800 (PST)
- Delivered-to: eclipselink-users@eclipse.org
Would weaving be required for a OneToOne lazy relationship to work ? It
relates to another thread we've been discussing for a couple of days
Thanks
Richard
James Sutherland wrote:
>
> If you set the fetch to LAZY the OneToMany will not be read until you
> access it. Ensure that you do not access the relationship in your code.
> Also ensure that you are using weaving (not required for OneToMany LAZY,
> but required for ManyToOne LAZY).
>
> If you never intend to read the topics, then you are better off not
> mapping it, and just querying it.
>
>
>
--
View this message in context: http://www.nabble.com/How-to-avoid-retrieving-an-OneToMany-collection--tp19728719p21338589.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.