|
Re: EMF/Teneo [message #640028 is a reply to message #640000] |
Thu, 18 November 2010 17:22 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi,
Comments inline:
On 11/18/2010 05:14 PM, tenor wrote:
> • What other XML format marshalling does EMF provide. Any
> size/performance (e.g. XMI is probably rather verbose).
MT>> It is XML or XMI afaiu, only with XML you need a root container.
> • Get a better understanding of the marshalling of referenced objects
> (both references to other EObjects and references to POJOs). We are
> likely to use containment for some items (so these should marshall
> easily), but not between things like transponder and carriers or
> satellite and transponders. I'm note sure if we will have any cases
> where referenced objects are added to a object graph by the server side
> but should then NOT be sent to the client (I guess I would hope not)
> i.e. can we assume that we always want to send the whole graph from
> server to client (and vice versa)? Also the XMLResource threw an error
> when we tried to marshall something which referenced another EMF object
> which wasn't included in the resource but the XMIResource didn't seem to
> when marshalling but did when unmarshalling - I'd like to understand why
> (perhaps a bug or by design)?
MT>> EMF surely supports references to objects not part of the resource, when going from XML to EMF objects it needs a
way to resolve those references, this is done through the resourceset. So your resource should be created through a
resourceset (I am sure the EMF book has some examples), the resourceset will then create other resources to hold the
referenced objects. You can also check the resource implementations, they have several methods you can override to
customize their behavior. Or check the options available in the XMLResource/Resource class (source code).
>
--
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@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
|
|
|
|
|
Re: Teneo [message #645032 is a reply to message #644953] |
Wed, 15 December 2010 09:49 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi,
Comments inline.
gr. Martin
On 12/15/2010 12:09 AM, tenor wrote:
> Thanks.
>
> A)Any example of
> TeneoNewSQLNameStrategy ?
MT>> I would check the source code of the current name strategy classes, it is all fairly simple code.
>
>
> B)At the interface level, can the following help ? ie
>
> org.eclipse.emf.teneo.annotations.mapper.*: ExtensionPoints which take care of adding default jpa annotations to the
> model. There are different annotators for different cases (one-to-many, many-to-one, etc.).
MT>> These annotators are used to fill the model with default jpa annotations. So they are not used to annotate java
classes. I am still not sure though what you are asking...
--
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@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Powered by
FUDForum. Page generated in 0.03591 seconds