Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] Cannot override EntityMapper
[Teneo] Cannot override EntityMapper [message #85333] Wed, 30 May 2007 15:59 Go to next message
Matthieu Helleboid is currently offline Matthieu HelleboidFriend
Messages: 18
Registered: July 2009
Junior Member
Hello Martin,

I've open a bug (1), in fact, I would like to override EntityMapper to be
able to fix the bug (2) because i'm in a hurry. Do you see another way to
fix it ?

(1) https://bugs.eclipse.org/bugs/show_bug.cgi?id=189963
(2) https://bugs.eclipse.org/bugs/show_bug.cgi?id=189407

Matthieu
Re: [Teneo] Cannot override EntityMapper [message #85368 is a reply to message #85333] Thu, 31 May 2007 06:47 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Matthieu,
Yes, I won't be able to do a release next week. So if you are in a hurry the best thing you can do
is create a package org.eclipse.emf.teneo.hibernate.mapper in your own dev project and place your
own custom entity mapper there.
The code should be something like this:
if ((entity.getPaSuperEntity() == null || entity.getPaSuperEntity().getMappedSuperclass() != null)
&& ((HbAnnotatedEClass) entity).getHbCache() != null) {
addCacheElement(entityElement, ((HbAnnotatedEClass) entity)
.getHbCache());
}

see the new part entity.getPaSuperEntity().getMappedSuperclass() != null.

gr. Martin

Matthieu Helleboid wrote:
> Hello Martin,
>
> I've open a bug (1), in fact, I would like to override EntityMapper to be
> able to fix the bug (2) because i'm in a hurry. Do you see another way to
> fix it ?
>
> (1) https://bugs.eclipse.org/bugs/show_bug.cgi?id=189963
> (2) https://bugs.eclipse.org/bugs/show_bug.cgi?id=189407
>
> Matthieu


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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] Cannot override EntityMapper [message #85397 is a reply to message #85368] Thu, 31 May 2007 10:14 Go to previous message
Matthieu Helleboid is currently offline Matthieu HelleboidFriend
Messages: 18
Registered: July 2009
Junior Member
Thanks Martin !

Le Thu, 31 May 2007 08:47:09 +0200, Martin Taal a écrit:

> Hi Matthieu,
> Yes, I won't be able to do a release next week. So if you are in a hurry the best thing you can do
> is create a package org.eclipse.emf.teneo.hibernate.mapper in your own dev project and place your
> own custom entity mapper there.
> The code should be something like this:
> if ((entity.getPaSuperEntity() == null || entity.getPaSuperEntity().getMappedSuperclass() != null)
> && ((HbAnnotatedEClass) entity).getHbCache() != null) {
> addCacheElement(entityElement, ((HbAnnotatedEClass) entity)
> .getHbCache());
> }
>
> see the new part entity.getPaSuperEntity().getMappedSuperclass() != null.
>
> gr. Martin
>
> Matthieu Helleboid wrote:
>> Hello Martin,
>>
>> I've open a bug (1), in fact, I would like to override EntityMapper to be
>> able to fix the bug (2) because i'm in a hurry. Do you see another way to
>> fix it ?
>>
>> (1) https://bugs.eclipse.org/bugs/show_bug.cgi?id=189963
>> (2) https://bugs.eclipse.org/bugs/show_bug.cgi?id=189407
>>
>> Matthieu
>
>
Re: [Teneo] Cannot override EntityMapper [message #606836 is a reply to message #85333] Thu, 31 May 2007 06:47 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Matthieu,
Yes, I won't be able to do a release next week. So if you are in a hurry the best thing you can do
is create a package org.eclipse.emf.teneo.hibernate.mapper in your own dev project and place your
own custom entity mapper there.
The code should be something like this:
if ((entity.getPaSuperEntity() == null || entity.getPaSuperEntity().getMappedSuperclass() != null)
&& ((HbAnnotatedEClass) entity).getHbCache() != null) {
addCacheElement(entityElement, ((HbAnnotatedEClass) entity)
.getHbCache());
}

see the new part entity.getPaSuperEntity().getMappedSuperclass() != null.

gr. Martin

Matthieu Helleboid wrote:
> Hello Martin,
>
> I've open a bug (1), in fact, I would like to override EntityMapper to be
> able to fix the bug (2) because i'm in a hurry. Do you see another way to
> fix it ?
>
> (1) https://bugs.eclipse.org/bugs/show_bug.cgi?id=189963
> (2) https://bugs.eclipse.org/bugs/show_bug.cgi?id=189407
>
> Matthieu


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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] Cannot override EntityMapper [message #606841 is a reply to message #85368] Thu, 31 May 2007 10:14 Go to previous message
Matthieu Helleboid is currently offline Matthieu HelleboidFriend
Messages: 18
Registered: July 2009
Junior Member
Thanks Martin !

Le Thu, 31 May 2007 08:47:09 +0200, Martin Taal a écrit:

> Hi Matthieu,
> Yes, I won't be able to do a release next week. So if you are in a hurry the best thing you can do
> is create a package org.eclipse.emf.teneo.hibernate.mapper in your own dev project and place your
> own custom entity mapper there.
> The code should be something like this:
> if ((entity.getPaSuperEntity() == null || entity.getPaSuperEntity().getMappedSuperclass() != null)
> && ((HbAnnotatedEClass) entity).getHbCache() != null) {
> addCacheElement(entityElement, ((HbAnnotatedEClass) entity)
> .getHbCache());
> }
>
> see the new part entity.getPaSuperEntity().getMappedSuperclass() != null.
>
> gr. Martin
>
> Matthieu Helleboid wrote:
>> Hello Martin,
>>
>> I've open a bug (1), in fact, I would like to override EntityMapper to be
>> able to fix the bug (2) because i'm in a hurry. Do you see another way to
>> fix it ?
>>
>> (1) https://bugs.eclipse.org/bugs/show_bug.cgi?id=189963
>> (2) https://bugs.eclipse.org/bugs/show_bug.cgi?id=189407
>>
>> Matthieu
>
>
Previous Topic:Trouble using 'embedded' annotation
Next Topic:[Teneo] Enhancement to provide a single base Exception class for all Teneo exceptions
Goto Forum:
  


Current Time: Thu Jan 21 06:35:11 GMT 2021

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

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

Back to the top