Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [TEXO] Use of EntityManager with DOA in a java container
[TEXO] Use of EntityManager with DOA in a java container [message #1696838] Thu, 28 May 2015 22:27 Go to next message
Mr Cur is currently offline Mr CurFriend
Messages: 31
Registered: September 2014
Member
Hi,

I consider to use Texo generated DOA classes in a java container.
In the current code, I use the @PersistenceContext annotation to inject an EntityManager per session . How can I arrange that the Doa gets the EntityManager?
I've looked at the DOA page of the Texo wiki. Is there an example I can look at?

Thanks,

Cur
Re: [TEXO] Use of EntityManager with DOA in a java container [message #1696870 is a reply to message #1696838] Fri, 29 May 2015 07:43 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Cur,
I guess the EntityManagerProvider class is the one to look at:
https://wiki.eclipse.org/Texo/EntityManagerHandling#The_EntityManagerProvider

gr. Martin

On 29-05-15 00:27, Mr Cur wrote:
> Hi,
>
> I consider to use Texo generated DOA classes in a java container.
> In the current code, I use the @PersistenceContext annotation to inject an EntityManager per session . How can I arrange
> that the Doa gets the EntityManager?
> I've looked at the DOA page of the Texo wiki. Is there an example I can look at?
>
> Thanks,
>
> Cur


--

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@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
Previous Topic:[EMFStore][EMF Forms] NullPointerException
Next Topic:[Texo] Updating annotations after changing ecore model
Goto Forum:
  


Current Time: Wed Jul 08 23:59:42 GMT 2020

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

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

Back to the top