Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EMF/Teneo
EMF/Teneo [message #640000] Thu, 18 November 2010 16:14 Go to next message
tenor  is currently offline tenor Friend
Messages: 57
Registered: October 2010
Member
• What other XML format marshalling does EMF provide. Any size/performance (e.g. XMI is probably rather verbose).
• 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)?
Re: EMF/Teneo [message #640028 is a reply to message #640000] Thu, 18 November 2010 17:22 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
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
Teneo [message #640803 is a reply to message #640028] Tue, 23 November 2010 09:06 Go to previous messageGo to next message
tenor  is currently offline tenor Friend
Messages: 57
Registered: October 2010
Member
Where to get javadoc for Teneo source?
Re: Teneo [message #640823 is a reply to message #640803] Tue, 23 November 2010 09:36 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
The code itself has some modest javadoc, if you install the sdk you will also get the source code installed.

gr. Martin

On 11/23/2010 10:06 AM, tenor wrote:
> Where to get javadoc for Teneo source?


--

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
Teneo [message #644725 is a reply to message #640823] Mon, 13 December 2010 22:56 Go to previous messageGo to next message
tenor  is currently offline tenor Friend
Messages: 57
Registered: October 2010
Member
1) Any example of Interface level of model generation with JPA, not the xsd one? Does it support all kind of annotations like standard POJO does at interface level?

2) what are sensible ways to name column and table names , NOT only limiting the length of them applying properties.

Much Thanks.
Re: Teneo [message #644743 is a reply to message #644725] Tue, 14 December 2010 04:09 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi,
Comments inline

gr. Martin

On 12/13/2010 11:56 PM, tenor wrote:
> 1) Any example of Interface level of model generation with JPA, not the xsd one? Does it support all kind of annotations
> like standard POJO does at interface level?
MT>> You mean specifying eannotations in the java code? Teneo does not support/work with jpa annotations directly in the
source code. I am not sure if it is possible to specify eannotations through the javadoc though.

>
> 2) what are sensible ways to name column and table names , NOT only limiting the length of them applying properties.
MT>> There are the properties and you can implement your own sql naming strategy:
http://wiki.eclipse.org/Teneo/Hibernate/Extensions#SqlNameSt rategy_ExtensionPoint_.28org.eclipse.emf.teneo.mapping.strat egy.SQLNameStrategy.29

(note url is quite long so maybe broken into multiple lines)

>
> Much Thanks.


--

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 #644953 is a reply to message #644743] Tue, 14 December 2010 23:09 Go to previous messageGo to next message
tenor  is currently offline tenor Friend
Messages: 57
Registered: October 2010
Member
Thanks.

A)Any example of

TeneoNewSQLNameStrategy ?


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.).
Re: Teneo [message #645032 is a reply to message #644953] Wed, 15 December 2010 09:49 Go to previous message
Martin Taal is currently offline Martin TaalFriend
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
Previous Topic:[CDO] Concurrent access of cdo servers
Next Topic:Setting initial values with Dynamic Feature Delegation
Goto Forum:
  


Current Time: Fri Apr 26 01:26:01 GMT 2024

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

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

Back to the top