Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EMF and iBATIS
EMF and iBATIS [message #892309] Wed, 27 June 2012 17:06 Go to next message
Jan Krakora is currently offline Jan KrakoraFriend
Messages: 477
Registered: December 2009
Location: Prague
Senior Member
Hi,

Is it possible to persist and load EMF objects using iBatis?

It seems to me as if it wouldn't work out of the box since the EMF objects
seems to need to be generated by a factory but iBatis uses constructors.

Can anyone say anything about this? I feel that I would love the power of
both frameworks at the same time... Smile
Re: EMF and iBATIS [message #892329 is a reply to message #892309] Wed, 27 June 2012 18:01 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Jan,
The main issue I encountered when doing Teneo were the EMF list implementations, which are specific and difficult to
combine with a persistence solution, the constructor/factory is no problem afaics as EMF will generate public constructors.

Btw, it can be an idea to check out the Texo project which generates standard java pojos with standard list
implementations (from ecore models), maybe this code is easier to integrate with ibatis:
http://wiki.eclipse.org/Texo

gr. Martin

On 06/27/2012 07:06 PM, Jan Krakora wrote:
> Hi,
>
> Is it possible to persist and load EMF objects using iBatis?
>
> It seems to me as if it wouldn't work out of the box since the EMF objects
> seems to need to be generated by a factory but iBatis uses constructors.
>
> Can anyone say anything about this? I feel that I would love the power of
> both frameworks at the same time... :)


--

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
Re: EMF and iBATIS [message #894046 is a reply to message #892309] Fri, 06 July 2012 13:36 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
We used EMF+iBatis in one of our old projects (iBatis was configured
through XML by then which IIRC changed). iBatis also you to define your
own instance-creation and feature setting factory which we used to call
EMFs factories.

For multi-valued features we had to write custom code (we introduced a
set...-method) and on first access of the EMF-List we copied the content
of the the iBatis list to EMF one.

Tom

Am 27.06.12 19:06, schrieb Jan Krakora:
> Hi,
>
> Is it possible to persist and load EMF objects using iBatis?
>
> It seems to me as if it wouldn't work out of the box since the EMF objects
> seems to need to be generated by a factory but iBatis uses constructors.
>
> Can anyone say anything about this? I feel that I would love the power of
> both frameworks at the same time... :)
Previous Topic:[Xcore] Problem with a package starting "http://"
Next Topic:[CDO] Memoryleak with H2 in CDO4.1?
Goto Forum:
  


Current Time: Fri Apr 26 12:21:34 GMT 2024

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

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

Back to the top