Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » EMF/Teneo and EclipseLink integration
EMF/Teneo and EclipseLink integration [message #376326] Wed, 09 July 2008 16:06 Go to next message
Mikhail Kadan is currently offline Mikhail Kadan
Messages: 61
Registered: July 2009
Member
Hi.

I've read this post almost a month ago:
http://dev.eclipse.org/newslists/news.eclipse.technology.ecl ipselink/msg00107.html
It is said that work on integration EMF/Teneo with EclipseLink is on it's
way.

Can I ask when exatly it will be finished? And maybe if it will be
finished not in one stage, what will be available on each stage?

Thanks.
Re: EMF/Teneo and EclipseLink integration [message #376333 is a reply to message #376326] Thu, 10 July 2008 22:53 Go to previous messageGo to next message
Shaun Smith is currently offline Shaun Smith
Messages: 197
Registered: July 2009
Senior Member
Hi Mikhail,

> I've read this post almost a month ago:
>
http://dev.eclipse.org/newslists/news.eclipse.technology.ecl ipselink/msg00107.html
> It is said that work on integration EMF/Teneo with EclipseLink is on it's
> way.

With EclipseLink reaching 1.0, some outstanding bugs being resolved, and
the availability of EclipseLink as OSGi bundles I'm happy to say I have
been able to upgrade the Teneo EMF/EclipseLink code and I have all my
existing unit tests working. I'll be committing my changes to the Teneo
CVS repository in the next few days (I'm out of the office right now).

> Can I ask when exactly it will be finished? And maybe if it will be
> finished not in one stage, what will be available on each stage?

What we will have to start is support for manually mapping EMF generated
classes with JPA using EclipseLink--just like you would do with standard
Java classes. The model driven/top down generation of everything
including the database will come later as that functionality depends on
the availability of the code I'm to check in.

--Shaun
Re: EMF/Teneo and EclipseLink integration [message #376334 is a reply to message #376333] Thu, 10 July 2008 23:42 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26149
Registered: July 2009
Senior Member
Shaun,

Woo hoo!


Shaun Smith wrote:
> Hi Mikhail,
>
>> I've read this post almost a month ago:
>>
> http://dev.eclipse.org/newslists/news.eclipse.technology.ecl ipselink/msg00107.html
>
>> It is said that work on integration EMF/Teneo with EclipseLink is on
>> it's way.
>
> With EclipseLink reaching 1.0, some outstanding bugs being resolved,
> and the availability of EclipseLink as OSGi bundles I'm happy to say I
> have been able to upgrade the Teneo EMF/EclipseLink code and I have
> all my existing unit tests working. I'll be committing my changes to
> the Teneo CVS repository in the next few days (I'm out of the office
> right now).
>
>> Can I ask when exactly it will be finished? And maybe if it will be
>> finished not in one stage, what will be available on each stage?
>
> What we will have to start is support for manually mapping EMF
> generated classes with JPA using EclipseLink--just like you would do
> with standard Java classes. The model driven/top down generation of
> everything including the database will come later as that
> functionality depends on the availability of the code I'm to check in.
>
> --Shaun
>
>
Re: EMF/Teneo and EclipseLink integration [message #376341 is a reply to message #376333] Sat, 12 July 2008 00:50 Go to previous messageGo to next message
Anthony Juckel is currently offline Anthony Juckel
Messages: 19
Registered: July 2009
Junior Member
Shaun Smith wrote:
> Hi Mikhail,
>
>> I've read this post almost a month ago:
>>
> http://dev.eclipse.org/newslists/news.eclipse.technology.ecl ipselink/msg00107.html
>
>> It is said that work on integration EMF/Teneo with EclipseLink is on
>> it's way.
>
> With EclipseLink reaching 1.0, some outstanding bugs being resolved, and
> the availability of EclipseLink as OSGi bundles I'm happy to say I have
> been able to upgrade the Teneo EMF/EclipseLink code and I have all my
> existing unit tests working. I'll be committing my changes to the Teneo
> CVS repository in the next few days (I'm out of the office right now).
>

This is most exciting. I'll be anxiously awaiting the CVS commit. If
you've got the time, I'm curious to know more about how your integration
works. Does it use the same teneo.jpa-sourced annotations as the
current Teneo/Hibernate bindings, or does it use some other mechanism?
I'm asking because I've recently been running in to problems with
Teneo's handling of bi-directional one-to-many non-containment
references, so I'm curious whether the EclipseLink code could address
this, or whether it'll use the same underlying Teneo mapping functionality.
Re: EMF/Teneo and EclipseLink integration [message #376342 is a reply to message #376333] Sat, 12 July 2008 18:35 Go to previous messageGo to next message
Eclipse User
Originally posted by: tskaufma.gmail.com

Hello,

Will you guys make an example, maybe using the well-known Library Example,
of how to do this?

Thanks,
Trevor Kaufman

"Shaun Smith" <shaun.smith@oracle.com> wrote in message
news:72034d37bd38f419cb8b71053433f87a$1@www.eclipse.org...
> Hi Mikhail,
>
>> I've read this post almost a month ago:
>>
> http://dev.eclipse.org/newslists/news.eclipse.technology.ecl ipselink/msg00107.html
>> It is said that work on integration EMF/Teneo with EclipseLink is on it's
>> way.
>
> With EclipseLink reaching 1.0, some outstanding bugs being resolved, and
> the availability of EclipseLink as OSGi bundles I'm happy to say I have
> been able to upgrade the Teneo EMF/EclipseLink code and I have all my
> existing unit tests working. I'll be committing my changes to the Teneo
> CVS repository in the next few days (I'm out of the office right now).
>
>> Can I ask when exactly it will be finished? And maybe if it will be
>> finished not in one stage, what will be available on each stage?
>
> What we will have to start is support for manually mapping EMF generated
> classes with JPA using EclipseLink--just like you would do with standard
> Java classes. The model driven/top down generation of everything
> including the database will come later as that functionality depends on
> the availability of the code I'm to check in.
>
> --Shaun
>
>
Re: EMF/Teneo and EclipseLink integration [message #376891 is a reply to message #376333] Thu, 24 July 2008 07:18 Go to previous messageGo to next message
Mikhail Kadan is currently offline Mikhail Kadan
Messages: 61
Registered: July 2009
Member
Hi, Shaun. How is your progress in commiting Teneo/EclipseLink?
Re: EMF/Teneo and EclipseLink integration [message #377441 is a reply to message #376333] Tue, 29 July 2008 14:07 Go to previous messageGo to next message
Victor Roldan Betancort is currently offline Victor Roldan Betancort
Messages: 524
Registered: July 2009
Senior Member
Hi,

have you heard of EMF-CDO project? I see here a possible interesting
integration of the persistence layer EclipseLink provides and the
distributed models concept of CDO.

Cheers,
Victor.
Re: EMF/Teneo and EclipseLink integration [message #377444 is a reply to message #376891] Wed, 30 July 2008 16:56 Go to previous messageGo to next message
Shaun Smith is currently offline Shaun Smith
Messages: 197
Registered: July 2009
Senior Member
I'm afraid travel for work and my vacation have delayed my Teneo work but
I've just checked in all the working code into the Teneo CVS. I'm
actually still on vacation so I don't have time to write up getting
started materials--that'll have to wait until I get back in the office.
In the meantime, you can look at the example. Stephan and I greatly
expanded the Library example to include relationships that were
containment/non-containment and lazy/eager loaded to test things out.
This example is a good place to start. Notice that you need to declare an
EclipseLink Customizer in the persistence.xml for things to work. Other
than that you map using plain old JPA orm.xml.

Also, watch out for the Derby client bundle--it just references your
existing Derby install. Read the readme.txt in the root of the project
for details. It's not complicated but you need to set it up to run the
example.

I'll be back with more once I'm back,

Shaun
Re: EMF/Teneo and EclipseLink integration [message #379586 is a reply to message #377444] Mon, 18 August 2008 04:35 Go to previous messageGo to next message
Ben is currently offline Ben
Messages: 46
Registered: July 2009
Member
Any news on this?
Re: EMF/Teneo and EclipseLink integration [message #379610 is a reply to message #379586] Tue, 19 August 2008 13:39 Go to previous messageGo to next message
Shaun Smith is currently offline Shaun Smith
Messages: 197
Registered: July 2009
Senior Member
Hi Ben,

I had checked the working code into Teneo CVS during my vacation but it
didn't have any getting started materials. Now I'm back from vacation I
intend to put together some wiki pages. Until that's ready, the tests are
a pretty good example of how to use it.

More coming soon,

Shaun
Re: EMF/Teneo and EclipseLink integration [message #381392 is a reply to message #379610] Wed, 17 September 2008 20:12 Go to previous messageGo to next message
Knut Wannheden is currently offline Knut Wannheden
Messages: 296
Registered: July 2009
Senior Member
Hi Shaun,

I just had a look at what's in CVS and it looks very promising. As I
understand it the integration is separate and independent of the rest of
Teneo.

I had some small problems with the xsi:schemaLocation in the orm.xml of
the library example. To get it to work I changed that and the default
xmlns to what it is in the eclipselink examples.

I noticed that objects which are contained by other objects (as for
example Writers are contained by the Library) get mapped to a table having
an ECONT_FEAT_ID column in addition to the ECONTAINER_ID column. I presume
that the reason is that the owned object could potentially be part of one
of many containment features of the parent object. In many cases (as in
the library example) there will just be one candidate containment feature.

I tried removing the ECONT_FEAT_ID mapping for Book and Writer after which
multiple unit tests failed because the eContainerFeatureID was not set on
those objects.

Is there some other way to instruct Teneo to set the eContainerFeatureID
properly? E.g. by having Teneo defaulting it where possible (as it would
be in the library example) or declaring the desired feature somewhere in
the mapping.

Thanks,

--knut
Re: EMF/Teneo and EclipseLink integration [message #492210 is a reply to message #381392] Mon, 19 October 2009 13:38 Go to previous message
Shaun Smith is currently offline Shaun Smith
Messages: 197
Registered: July 2009
Senior Member
Hi Knut,

Quote:
Is there some other way to instruct Teneo to set the eContainerFeatureID
properly? E.g. by having Teneo defaulting it where possible (as it would
be in the library example) or declaring the desired feature somewhere in
the mapping.


There's a bug filed to change how eContainerFeatureId is handled. In the current implementation, the actual int value is stored however it turns out that it would be better to store the feature name and lookup the value.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=271086

--Shaun
Previous Topic:Using generic and specific relationships
Next Topic:retrieving the assigned primary key
Goto Forum:
  


Current Time: Thu Oct 30 12:23:41 GMT 2014

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

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