Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [Teneo] Enable Full Use API of EntityManager(How to use the full API of the javax.persistence.EntityManager with Eclipse Teneo and an EMF model?)
[Teneo] Enable Full Use API of EntityManager [message #1720749] Wed, 20 January 2016 16:18 Go to next message
Timo Rohrberg is currently offline Timo RohrbergFriend
Messages: 69
Registered: September 2011
Location: Karlsruhe
Member
Hello everybody
(or should I say Martin Taal Smile),

we try to use Eclipse Teneo to persist our business models created with Eclipse EMF into a PostgreSQL database and read it from there using the standard JPA EntityMananger API. Unfortunately, the mapping automatically created by Eclipse Teneo does not allow us to use EntityManager.find() method for example as it does not find a valid mapping of our EMF entities.

We created a simple example project attached to this post which can be imported into a default Eclipse Luna Modeling installation/workspace. One just needs to install Eclipse Teneo + Dependencies from [1] and [2], and place the h2 database driver (contained in the attached ZIP) into the dropins folder of eclipse.

We also found an older post [3] which ecountered the similar problem than we do and obviously solved it - just that the solution described there does not work for us.

Do you guys have any idea what is wrong with the setup? In our opinion it can only related to the way we model our entities and/or some Teneo/Hibernate configuration which we are not aware of.

We're glad for any hints not matter if they contain a final solution.

Thanks a lot.

Regards
Timo

[1] http://www.elver.org/eclipse/2.1.0/update
[2] http://download.eclipse.org/modeling/emf/teneo/updates/2.1.0/interim/
[3] https://www.eclipse.org/forums/index.php/t/199012/
Re: [Teneo] Enable Full Use API of EntityManager [message #1720802 is a reply to message #1720749] Thu, 21 January 2016 07:29 Go to previous messageGo to next message
Timo Rohrberg is currently offline Timo RohrbergFriend
Messages: 69
Registered: September 2011
Location: Karlsruhe
Member
I re-created the same topic in the EMF Technology forum as I suppose it fits better there:
https://www.eclipse.org/forums/index.php/m/1720800/#msg_1720800
Re: [Teneo] Enable Full Use API of EntityManager [message #1721002 is a reply to message #1720802] Fri, 22 January 2016 11:57 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Timo,
Ok tx, I will reply there, I will reply in a few days max.

gr. Martin
Previous Topic:XSD to Ecore
Next Topic:Creating an Editor for a single Attribute
Goto Forum:
  


Current Time: Thu Apr 25 16:21:15 GMT 2024

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

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

Back to the top