Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] annotated EMF/JPA
[Teneo] annotated EMF/JPA [message #118398] Tue, 15 April 2008 14:47 Go to next message
Eclipse UserFriend
Originally posted by: tom.eiswind.de

HI once again Im thinking about an EMF model.
So I read some news and I wonder about the following: Can I use Teneo to
generate an EMF model with JPA/Hibernate annotations that will run on my
(mostly) unmodified server code (currently on pojos) without teneo
runtime code? I need hibernate search annotations, caching, plus my own
custom annotations. My server is currently standalone java app, so I
wouldnt have to refactor everything to the osgi platform. (RIENA isnt so
far I guess :) that would be a reason. Id like to have the emf model for
the client side...

Thx
Thomas
Re: [Teneo] annotated EMF/JPA [message #118407 is a reply to message #118398] Tue, 15 April 2008 15:00 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Thomas,
Do you mean generation of pojos without emf dependency and with (jpa) annotations?

If so then this proposal may be of interest:
http://wiki.eclipse.org/Texo

although it is aimed at web apps, generation of annotated pojo's will be part of this also. The pojo
generation code (incl. generation of jpa and hibernate search annotations) is practically finished
(I am polishing the tooling around it). However the proposal is in the so-called pre-proposal phase
so I am not sure if/when it will really be downloadable from an eclipse.org website.

gr. Martin

Thomas wrote:
> HI once again Im thinking about an EMF model.
> So I read some news and I wonder about the following: Can I use Teneo to
> generate an EMF model with JPA/Hibernate annotations that will run on my
> (mostly) unmodified server code (currently on pojos) without teneo
> runtime code? I need hibernate search annotations, caching, plus my own
> custom annotations. My server is currently standalone java app, so I
> wouldnt have to refactor everything to the osgi platform. (RIENA isnt so
> far I guess :) that would be a reason. Id like to have the emf model for
> the client side...
>
> Thx
> Thomas


--

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] annotated EMF/JPA [message #118422 is a reply to message #118407] Tue, 15 April 2008 15:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Martin,

The EMF runtime works as jars on a stand alone classpath. That's also
true of the Teneo runtime, isn't it? I.e., Thomas can use EMF and Teneo
without refactoring anything to use OSGi and could even use the same
model and runtime on the client and the server...


Martin Taal wrote:
> Hi Thomas,
> Do you mean generation of pojos without emf dependency and with (jpa)
> annotations?
>
> If so then this proposal may be of interest:
> http://wiki.eclipse.org/Texo
>
> although it is aimed at web apps, generation of annotated pojo's will
> be part of this also. The pojo generation code (incl. generation of
> jpa and hibernate search annotations) is practically finished (I am
> polishing the tooling around it). However the proposal is in the
> so-called pre-proposal phase so I am not sure if/when it will really
> be downloadable from an eclipse.org website.
>
> gr. Martin
>
> Thomas wrote:
>> HI once again Im thinking about an EMF model.
>> So I read some news and I wonder about the following: Can I use Teneo
>> to generate an EMF model with JPA/Hibernate annotations that will run
>> on my (mostly) unmodified server code (currently on pojos) without
>> teneo runtime code? I need hibernate search annotations, caching,
>> plus my own custom annotations. My server is currently standalone
>> java app, so I wouldnt have to refactor everything to the osgi
>> platform. (RIENA isnt so far I guess :) that would be a reason. Id
>> like to have the emf model for the client side...
>>
>> Thx
>> Thomas
>
>
Re: [Teneo] annotated EMF/JPA [message #118430 is a reply to message #118422] Tue, 15 April 2008 16:18 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Ed,
Yes sure both emf and teneo can run outside of an osgi container. Thomas, if your question is just
about osgi then you can take these jars and run Teneo together outside of an osgi container:
org.eclipse.emf.teneo
org.eclipse.emf.teneo.annotations
org.eclipse.emf.teneo.hibernate
org.eclipse.emf.teneo.hibernate.mapper

and commons-logging.jar

for emf you require the following jars (at least that is what I use):
org.eclipse.emf.common
org.eclipse.emf.ecore.xmi
org.eclipse.emf.ecore

You can find these jars inside of the plugins in your eclipse installation.

gr. Martin

Ed Merks wrote:
> Martin,
>
> The EMF runtime works as jars on a stand alone classpath. That's also
> true of the Teneo runtime, isn't it? I.e., Thomas can use EMF and Teneo
> without refactoring anything to use OSGi and could even use the same
> model and runtime on the client and the server...
>
>
> Martin Taal wrote:
>> Hi Thomas,
>> Do you mean generation of pojos without emf dependency and with (jpa)
>> annotations?
>>
>> If so then this proposal may be of interest:
>> http://wiki.eclipse.org/Texo
>>
>> although it is aimed at web apps, generation of annotated pojo's will
>> be part of this also. The pojo generation code (incl. generation of
>> jpa and hibernate search annotations) is practically finished (I am
>> polishing the tooling around it). However the proposal is in the
>> so-called pre-proposal phase so I am not sure if/when it will really
>> be downloadable from an eclipse.org website.
>>
>> gr. Martin
>>
>> Thomas wrote:
>>> HI once again Im thinking about an EMF model.
>>> So I read some news and I wonder about the following: Can I use Teneo
>>> to generate an EMF model with JPA/Hibernate annotations that will run
>>> on my (mostly) unmodified server code (currently on pojos) without
>>> teneo runtime code? I need hibernate search annotations, caching,
>>> plus my own custom annotations. My server is currently standalone
>>> java app, so I wouldnt have to refactor everything to the osgi
>>> platform. (RIENA isnt so far I guess :) that would be a reason. Id
>>> like to have the emf model for the client side...
>>>
>>> Thx
>>> Thomas
>>
>>


--

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] annotated EMF/JPA [message #118754 is a reply to message #118430] Thu, 17 April 2008 11:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tom.eiswind.de

Thats what I needed, Thx
Re: [Teneo] annotated EMF/JPA [message #118804 is a reply to message #118754] Thu, 17 April 2008 12:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tom.eiswind.de

What I would like to know is

Cache is there, great.

What would it make to integrate annotations for
hibernate search & validator ?

I truly need both

Thomas schrieb:
> Thats what I needed, Thx
Re: [Teneo] annotated EMF/JPA [message #118870 is a reply to message #118804] Thu, 17 April 2008 13:32 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
This is not supported as part of Teneo and it is outside of the scope. So I am afraid that Teneo
won't help you there. One thing you can check out is creating your own custom jet templates which
will put the required annotations in the source code. EMF can make use of your custom templates when
generating the source code. There are lots of posts about that on the EMF newsgroup.

gr. Martin

Thomas wrote:
> What I would like to know is
>
> Cache is there, great.
>
> What would it make to integrate annotations for
> hibernate search & validator ?
>
> I truly need both
>
> Thomas schrieb:
>> Thats what I needed, Thx


--

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] annotated EMF/JPA [message #616312 is a reply to message #118398] Tue, 15 April 2008 15:00 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Thomas,
Do you mean generation of pojos without emf dependency and with (jpa) annotations?

If so then this proposal may be of interest:
http://wiki.eclipse.org/Texo

although it is aimed at web apps, generation of annotated pojo's will be part of this also. The pojo
generation code (incl. generation of jpa and hibernate search annotations) is practically finished
(I am polishing the tooling around it). However the proposal is in the so-called pre-proposal phase
so I am not sure if/when it will really be downloadable from an eclipse.org website.

gr. Martin

Thomas wrote:
> HI once again Im thinking about an EMF model.
> So I read some news and I wonder about the following: Can I use Teneo to
> generate an EMF model with JPA/Hibernate annotations that will run on my
> (mostly) unmodified server code (currently on pojos) without teneo
> runtime code? I need hibernate search annotations, caching, plus my own
> custom annotations. My server is currently standalone java app, so I
> wouldnt have to refactor everything to the osgi platform. (RIENA isnt so
> far I guess :) that would be a reason. Id like to have the emf model for
> the client side...
>
> Thx
> Thomas


--

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] annotated EMF/JPA [message #616316 is a reply to message #118407] Tue, 15 April 2008 15:11 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30993
Registered: July 2009
Senior Member
Martin,

The EMF runtime works as jars on a stand alone classpath. That's also
true of the Teneo runtime, isn't it? I.e., Thomas can use EMF and Teneo
without refactoring anything to use OSGi and could even use the same
model and runtime on the client and the server...


Martin Taal wrote:
> Hi Thomas,
> Do you mean generation of pojos without emf dependency and with (jpa)
> annotations?
>
> If so then this proposal may be of interest:
> http://wiki.eclipse.org/Texo
>
> although it is aimed at web apps, generation of annotated pojo's will
> be part of this also. The pojo generation code (incl. generation of
> jpa and hibernate search annotations) is practically finished (I am
> polishing the tooling around it). However the proposal is in the
> so-called pre-proposal phase so I am not sure if/when it will really
> be downloadable from an eclipse.org website.
>
> gr. Martin
>
> Thomas wrote:
>> HI once again Im thinking about an EMF model.
>> So I read some news and I wonder about the following: Can I use Teneo
>> to generate an EMF model with JPA/Hibernate annotations that will run
>> on my (mostly) unmodified server code (currently on pojos) without
>> teneo runtime code? I need hibernate search annotations, caching,
>> plus my own custom annotations. My server is currently standalone
>> java app, so I wouldnt have to refactor everything to the osgi
>> platform. (RIENA isnt so far I guess :) that would be a reason. Id
>> like to have the emf model for the client side...
>>
>> Thx
>> Thomas
>
>
Re: [Teneo] annotated EMF/JPA [message #616317 is a reply to message #118422] Tue, 15 April 2008 16:18 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Ed,
Yes sure both emf and teneo can run outside of an osgi container. Thomas, if your question is just
about osgi then you can take these jars and run Teneo together outside of an osgi container:
org.eclipse.emf.teneo
org.eclipse.emf.teneo.annotations
org.eclipse.emf.teneo.hibernate
org.eclipse.emf.teneo.hibernate.mapper

and commons-logging.jar

for emf you require the following jars (at least that is what I use):
org.eclipse.emf.common
org.eclipse.emf.ecore.xmi
org.eclipse.emf.ecore

You can find these jars inside of the plugins in your eclipse installation.

gr. Martin

Ed Merks wrote:
> Martin,
>
> The EMF runtime works as jars on a stand alone classpath. That's also
> true of the Teneo runtime, isn't it? I.e., Thomas can use EMF and Teneo
> without refactoring anything to use OSGi and could even use the same
> model and runtime on the client and the server...
>
>
> Martin Taal wrote:
>> Hi Thomas,
>> Do you mean generation of pojos without emf dependency and with (jpa)
>> annotations?
>>
>> If so then this proposal may be of interest:
>> http://wiki.eclipse.org/Texo
>>
>> although it is aimed at web apps, generation of annotated pojo's will
>> be part of this also. The pojo generation code (incl. generation of
>> jpa and hibernate search annotations) is practically finished (I am
>> polishing the tooling around it). However the proposal is in the
>> so-called pre-proposal phase so I am not sure if/when it will really
>> be downloadable from an eclipse.org website.
>>
>> gr. Martin
>>
>> Thomas wrote:
>>> HI once again Im thinking about an EMF model.
>>> So I read some news and I wonder about the following: Can I use Teneo
>>> to generate an EMF model with JPA/Hibernate annotations that will run
>>> on my (mostly) unmodified server code (currently on pojos) without
>>> teneo runtime code? I need hibernate search annotations, caching,
>>> plus my own custom annotations. My server is currently standalone
>>> java app, so I wouldnt have to refactor everything to the osgi
>>> platform. (RIENA isnt so far I guess :) that would be a reason. Id
>>> like to have the emf model for the client side...
>>>
>>> Thx
>>> Thomas
>>
>>


--

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] annotated EMF/JPA [message #617801 is a reply to message #118430] Thu, 17 April 2008 11:59 Go to previous message
Thomas is currently offline ThomasFriend
Messages: 151
Registered: July 2009
Senior Member
Thats what I needed, Thx
Re: [Teneo] annotated EMF/JPA [message #617817 is a reply to message #118754] Thu, 17 April 2008 12:26 Go to previous message
Thomas is currently offline ThomasFriend
Messages: 151
Registered: July 2009
Senior Member
What I would like to know is

Cache is there, great.

What would it make to integrate annotations for
hibernate search & validator ?

I truly need both

Thomas schrieb:
> Thats what I needed, Thx
Re: [Teneo] annotated EMF/JPA [message #617824 is a reply to message #118804] Thu, 17 April 2008 13:32 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
This is not supported as part of Teneo and it is outside of the scope. So I am afraid that Teneo
won't help you there. One thing you can check out is creating your own custom jet templates which
will put the required annotations in the source code. EMF can make use of your custom templates when
generating the source code. There are lots of posts about that on the EMF newsgroup.

gr. Martin

Thomas wrote:
> What I would like to know is
>
> Cache is there, great.
>
> What would it make to integrate annotations for
> hibernate search & validator ?
>
> I truly need both
>
> Thomas schrieb:
>> Thats what I needed, Thx


--

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:EMF M6 + tools: Types not available
Next Topic:Re: Input for generated editor
Goto Forum:
  


Current Time: Sun Mar 29 19:04:37 GMT 2020

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

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

Back to the top