[Teneo] Turn off lazy-loading [message #93328] |
Wed, 15 August 2007 09:05  |
Eclipse User |
|
|
|
Hi,
When loading a resource with Teneo, sometimes some elements are not
loading all their attributes. To load all, I need to explicitly call the
get method of the element, for example myRef.getKey() or something
similar.
Isn't it a lazy-loading issue? How can I turn off Teneo lazy-loading?
|
|
|
Re: [Teneo] Turn off lazy-loading [message #93447 is a reply to message #93328] |
Thu, 16 August 2007 13:50  |
Eclipse User |
|
|
|
Hi Dimitar,
It is a lazy loading issue if the element is a list. See here for an option to load containment
relations eagerly:
http://www.elver.org/jpox/jpoxdatastore.html#General+Options
(note the part on programmatically generating the jdo file on the same page)
To set eager loading on non-containment relations you need to use annotations:
http://www.elver.org/jpox/ejb3_features.html
gr. Martin
Dimitar Stamenov wrote:
> Hi,
>
> When loading a resource with Teneo, sometimes some elements are not
> loading all their attributes. To load all, I need to explicitly call the
> get method of the element, for example myRef.getKey() or something
> similar.
>
> Isn't it a lazy-loading issue? How can I turn off Teneo lazy-loading?
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Re: [Teneo] Turn off lazy-loading [message #609474 is a reply to message #93328] |
Thu, 16 August 2007 13:50  |
Eclipse User |
|
|
|
Hi Dimitar,
It is a lazy loading issue if the element is a list. See here for an option to load containment
relations eagerly:
http://www.elver.org/jpox/jpoxdatastore.html#General+Options
(note the part on programmatically generating the jdo file on the same page)
To set eager loading on non-containment relations you need to use annotations:
http://www.elver.org/jpox/ejb3_features.html
gr. Martin
Dimitar Stamenov wrote:
> Hi,
>
> When loading a resource with Teneo, sometimes some elements are not
> loading all their attributes. To load all, I need to explicitly call the
> get method of the element, for example myRef.getKey() or something
> similar.
>
> Isn't it a lazy-loading issue? How can I turn off Teneo lazy-loading?
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Powered by
FUDForum. Page generated in 0.04640 seconds