Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] Turn off lazy-loading
[Teneo] Turn off lazy-loading [message #93328] Wed, 15 August 2007 13:05 Go to next message
Dimitar Stamenov is currently offline Dimitar StamenovFriend
Messages: 18
Registered: July 2009
Junior Member
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 17:50 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
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 17:50 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
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
Previous Topic:[Teneo] Problem with the length of element names
Next Topic:Teneo - Migrating 0.75 to 0.8
Goto Forum:
  


Current Time: Wed Apr 24 19:49:47 GMT 2024

Powered by FUDForum. Page generated in 0.03609 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top