|
Re: [Texo] Lazy Loading with Texo [message #1281810 is a reply to message #1281170] |
Tue, 01 April 2014 11:40 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi Bastian,
Hmm not now, you can check the internals of the EObjectStore, it basically calls the json webservice, the json
webservice supports what you want:
https://wiki.eclipse.org/Texo/JSON_REST_Web_Services#Query_for_multiple_values
So you can force a load by querying for additional referenced data.
I propose the following, can you subclass/extend the EObjectStore with your code and then if you want (I hope!) attach
it to a bugzilla? Then I can add this to the EObjectStore implementation.
Or maybe what you mean is a list of efeature names which are to be loaded and returned as part of the json? Also for
non-containment references.
gr. Martin
On 03/31/2014 03:14 PM, Bastian Wagenfeld wrote:
> Hi,
>
> I've got a question regarding lazy loading or better selective loading with Texo. Therefore I'll create a little example:
>
> I want to a list of objects (ObjectA) consisting of primitive types and other object references.
>
> ObjectA
> -- name : String
> -- description : String
> -- ref : ObjectB (Reference)
> -- list : List<ObjectC> (Containment list)
>
> Is it possible to load everything in this object besides the containment list (name, description and ref)? That would be
> great.
> Or is it otherwise possible to query those other attributes via the ObjectStore? The query-method won't work, since it
> only returns whole EObjects.
>
> I would be very happy for any hint!
> Bastian
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
|
|
|
|
Powered by
FUDForum. Page generated in 0.03433 seconds