Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Teneo and JPA
Teneo and JPA [message #754863] Fri, 04 November 2011 16:53 Go to next message
Herve Ferreira is currently offline Herve FerreiraFriend
Messages: 31
Registered: October 2011
Member

I've checked that in the documentation it's wrote sometimes JPA. However, in the Java code Hibernate is used, if I check the hbm file it points to hibernate DTD's

Can Teneo use the JPA API?

Thanks
Re: Teneo and JPA [message #754876 is a reply to message #754863] Fri, 04 November 2011 17:25 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Herve,
Teneo only works with Hibernate but you can use the EntityManager api:
http://wiki.eclipse.org/Teneo/Hibernate/Hibernate_Datastore#HbEntityDataStore.2C_support_for_Hibernate_EntityManager

Texo also supports jpa but is more flexible, it supports all JPA compliant ORM's and can generate JPA annotations in the
source code or a separate orm:
http://wiki.eclipse.org/Texo#ORM.2FJPA_generation_topics
http://martintaal.wordpress.com/2011/10/26/texo-generate-jpa-annotated-pojos-from-ecorexsd/

gr. Martin

On 11/04/2011 05:53 PM, Herve Ferreira wrote:

>
> I've checked that in the documentation it's wrote sometimes JPA. However, in the Java code Hibernate is used, if I check
> the hbm file it points to hibernate DTD's
>
> Can Teneo use the JPA API?
>
> 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 and JPA [message #755078 is a reply to message #754876] Mon, 07 November 2011 10:03 Go to previous messageGo to next message
Jean-Louis  is currently offline Jean-Louis Friend
Messages: 18
Registered: October 2011
Junior Member
Hi Martin

We are now defining the DAO's layer and we have checked the HibernateTemplate from Spring. This HibernateTemplate will help us
to create this layer.

Do you think that we can in same way integrate HibernateTemplate and Teneo?

Our problem is that HibernateTemplate injects the SessionFactory, but we still have to get how to inject the HbDataStore.

Thanks for your help
Re: Teneo and JPA [message #755088 is a reply to message #755078] Mon, 07 November 2011 10:57 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Jean-Louis,
I am not sure that I fully understand, why would you want to inject the datastore? I would say that you use the data
store as a sessionfactory for Spring and only use the session factory/session in your daos.

Did you see this page (which can be a bit outdated):
http://wiki.eclipse.org/Teneo/Hibernate/Hibernate_Datastore#Spring_configuration_and_the_HbSessionDataStore.2FHbEntityDataStore

gr. Martin

On 11/07/2011 11:03 AM, Jean-Louis wrote:
> Hi Martin
>
> We are now defining the DAO's layer and we have checked the HibernateTemplate from Spring. This HibernateTemplate will
> help us
> to create this layer.
>
> Do you think that we can in same way integrate HibernateTemplate and Teneo?
>
> Our problem is that HibernateTemplate injects the SessionFactory, but we still have to get how to inject the HbDataStore.
>
> Thanks for your help


--

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:TENEO EMF Persisting in DataBase
Next Topic:EMF CDO Model Archive
Goto Forum:
  


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

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

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

Back to the top