Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Emf + Teneo + Web services support (JAX-WS)
Emf + Teneo + Web services support (JAX-WS) [message #527870] Fri, 16 April 2010 18:05 Go to next message
e1n is currently offline e1nFriend
Messages: 22
Registered: April 2010
Location: Poland
Junior Member

Hi !

At the beginning I must mention that I am new to EMF and it's related technologies.

I am trying to use EMF to model simple shop application (as my project at university) . For ORM I am using Teneo, every thing works just fine.
My problem is that I want to expose my model information using web service and i have no idea how to pass extra information (JAX-WS annotations) to my model. My main aim is to generate java code with those annotations already present in the code.
As modeling tool I am using Ecore Diagram .

I will appreciate any kind of help, tip or advice.
Re: Emf + Teneo + Web services support (JAX-WS) [message #527897 is a reply to message #527870] Fri, 16 April 2010 19:57 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33218
Registered: July 2009
Senior Member
Michal,

There's no built-in support for producing specific Java annotations in
the generated models. You'd need to use dynamic templates for such a thing.


e1n wrote:
> Hi !
>
> At the beginning I must mention that I am new to EMF and it's related
> technologies.
>
> I am trying to use EMF to model simple shop application (as my project
> at university) . For ORM I am using Teneo, every thing works just fine.
> My problem is that I want to expose my model information using web
> service and i have no idea how to pass extra information (JAX-WS
> annotations) to my model. My main aim is to generate java code with
> those annotations already present in the code.
> As modeling tool I am using Ecore Diagram .
>
> I will appreciate any kind of help, tip or advice.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Emf + Teneo + Web services support (JAX-WS) [message #527898 is a reply to message #527870] Fri, 16 April 2010 20:15 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Michal,
A project which might be interesting on the mid-term is the texo project: http://wiki.eclipse.org/Texo
This project aims to generate (model) code with java annotations with support of several annotation sets (jpa, etc.). I
am currently working on the annotation management part. So jax-ws annotations are not generated yet, but can also be
interesting.

Let me know if this sounds interesting maybe we can cooperate/share knowledge/ideas on this.

gr. Martin

e1n wrote:
> Hi !
>
> At the beginning I must mention that I am new to EMF and it's related
> technologies.
>
> I am trying to use EMF to model simple shop application (as my project
> at university) . For ORM I am using Teneo, every thing works just fine.
> My problem is that I want to expose my model information using web
> service and i have no idea how to pass extra information (JAX-WS
> annotations) to my model. My main aim is to generate java code with
> those annotations already present in the code.
> As modeling tool I am using Ecore Diagram .
>
> I will appreciate any kind of help, tip or advice.


--

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: Emf + Teneo + Web services support (JAX-WS) [message #527920 is a reply to message #527898] Fri, 16 April 2010 22:06 Go to previous messageGo to next message
e1n is currently offline e1nFriend
Messages: 22
Registered: April 2010
Location: Poland
Junior Member

Hi Martin,

Great idea, i am honestly interested in sharing knowledge and ideas.
Tomorrow i will study Texo project, and give you some feedback.
I hope i would be also able to ask some questions about web services support and other features.


With regards,
Michal

Re: Emf + Teneo + Web services support (JAX-WS) [message #527921 is a reply to message #527897] Fri, 16 April 2010 22:14 Go to previous messageGo to next message
e1n is currently offline e1nFriend
Messages: 22
Registered: April 2010
Location: Poland
Junior Member

Hi Ed,

By dynamic templates you meant JET templates ?
If so where i could find resources which will enlighten
me ?
I am really curious where i should place a "hook" to alter behavior of code generation framework in order to place my own rules .

With best regards,
Michal
Re: Emf + Teneo + Web services support (JAX-WS) [message #527925 is a reply to message #527921] Fri, 16 April 2010 22:16 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33218
Registered: July 2009
Senior Member
Michal,

There's a FAQ question for how to enable dynamic templates. Texo is
probably a pretty interesting approach to explore too.


e1n wrote:
> Hi Ed,
>
> By dynamic templates you meant JET templates ?
> If so where i could find resources which will enlighten me ?
> I am really curious where i should place a "hook" to alter behavior of
> code generation framework in order to place my own rules .
>
> With best regards,
> Michal


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Emf + Teneo + Web services support (JAX-WS) [message #527972 is a reply to message #527898] Sat, 17 April 2010 17:17 Go to previous message
e1n is currently offline e1nFriend
Messages: 22
Registered: April 2010
Location: Poland
Junior Member

Hi Martin,

Today i have studied Texo project, and it seems that it perfectly suits my needs.
I have also glanced on some xpt template files which I really enjoyed for their simple and intuitive syntax.
Unfortunately I haven't found any clue on how to pass extra annotation information to generator context .

If you would decide to add support for JPA and JAX-WS annotations I will be the first person to test those features Smile.


Martin taal wrote on Fri, 16 April 2010 16:15
Hi Michal,
A project which might be interesting on the mid-term is the texo project: http://wiki.eclipse.org/Texo
This project aims to generate (model) code with java annotations with support of several annotation sets (jpa, etc.). I
am currently working on the annotation management part. So jax-ws annotations are not generated yet, but can also be
interesting.

Let me know if this sounds interesting maybe we can cooperate/share knowledge/ideas on this.

gr. Martin

e1n wrote:
> Hi !
>
> At the beginning I must mention that I am new to EMF and it's related
> technologies.
>
> I am trying to use EMF to model simple shop application (as my project
> at university) . For ORM I am using Teneo, every thing works just fine.
> My problem is that I want to expose my model information using web
> service and i have no idea how to pass extra information (JAX-WS
> annotations) to my model. My main aim is to generate java code with
> those annotations already present in the code.
> As modeling tool I am using Ecore Diagram .
>
> I will appreciate any kind of help, tip or advice.


--

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

[Updated on: Sat, 17 April 2010 17:24]

Report message to a moderator

Previous Topic:ObservableMapLabelProvider construction problem.
Next Topic:[CDO] How to specify EDate - Attributes to persist in a Db-Store
Goto Forum:
  


Current Time: Wed Sep 25 04:46:31 GMT 2024

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

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

Back to the top