Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc) » [Teneo] annotated EMF/JPA
[Teneo] annotated EMF/JPA [message #118398] |
Tue, 15 April 2008 10: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 #118430 is a reply to message #118422] |
Tue, 15 April 2008 12:18   |
Eclipse User |
|
|
|
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 #118870 is a reply to message #118804] |
Thu, 17 April 2008 09:32  |
Eclipse User |
|
|
|
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 11:00  |
Eclipse User |
|
|
|
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 11:11  |
Eclipse User |
|
|
|
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 12:18  |
Eclipse User |
|
|
|
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 #617817 is a reply to message #118754] |
Thu, 17 April 2008 08:26  |
Eclipse User |
|
|
|
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 09:32  |
Eclipse User |
|
|
|
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
|
|
|
Goto Forum:
Current Time: Fri May 09 08:38:47 EDT 2025
Powered by FUDForum. Page generated in 0.07034 seconds
|