Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc) » [Teneo] annotated EMF/JPA
[Teneo] annotated EMF/JPA [message #118398] |
Tue, 15 April 2008 14:47 |
Eclipse User |
|
|
|
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 #118422 is a reply to message #118407] |
Tue, 15 April 2008 15:11 |
Eclipse User |
|
|
|
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 |
Martin Taal 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 #118804 is a reply to message #118754] |
Thu, 17 April 2008 12:26 |
Eclipse User |
|
|
|
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 #616316 is a reply to message #118407] |
Tue, 15 April 2008 15:11 |
Ed Merks Messages: 33218 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
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: [Teneo] annotated EMF/JPA [message #616317 is a reply to message #118422] |
Tue, 15 April 2008 16:18 |
Martin Taal 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
|
|
| | | |
Goto Forum:
Current Time: Thu Sep 26 00:42:40 GMT 2024
Powered by FUDForum. Page generated in 0.05207 seconds
|