Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc) » [Teneo] Cannot override EntityMapper
|
Re: [Teneo] Cannot override EntityMapper [message #85368 is a reply to message #85333] |
Thu, 31 May 2007 06:47 |
Martin Taal 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 #606836 is a reply to message #85333] |
Thu, 31 May 2007 06:47 |
Martin Taal 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
|
|
| |
Goto Forum:
Current Time: Thu Apr 25 17:23:56 GMT 2024
Powered by FUDForum. Page generated in 0.03553 seconds
|