[Teneo] Cache annotation and superClass [message #84979] |
Fri, 25 May 2007 11:08  |
Eclipse User |
|
|
|
Hello all,
Can someone explain me (us) the reason why a class which has a mapped
superClass cannot have a Cache annotation ?
In class org.eclipse.emf.teneo.hibernate.mapper.EntityMapper line 387
if (entity.getPaSuperEntity() == null &&
((HbAnnotatedEClass) entity).getHbCache() != null) {
addCacheElement(entityElement, ((HbAnnotatedEClass) entity).getHbCache());
}
Thanks a lot.
Matthieu
|
|
|
Re: [Teneo] Cache annotation and superClass [message #85043 is a reply to message #84979] |
Fri, 25 May 2007 13:17  |
Eclipse User |
|
|
|
Matthieu,
The cache annotation can only be used in the root of an inheritance strategy.
Teneo should detect that the superclass can be a mappedsuperclass, in this case the cache annotation
is allowed. This is a bug, please enter a bugzilla for this.
gr. Martin
Matthieu Helleboid wrote:
> Hello all,
>
> Can someone explain me (us) the reason why a class which has a mapped
> superClass cannot have a Cache annotation ?
>
> In class org.eclipse.emf.teneo.hibernate.mapper.EntityMapper line 387
>
> if (entity.getPaSuperEntity() == null &&
> ((HbAnnotatedEClass) entity).getHbCache() != null) {
> addCacheElement(entityElement, ((HbAnnotatedEClass) entity).getHbCache());
> }
>
> Thanks a lot.
> 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] Cache annotation and superClass [message #606799 is a reply to message #84979] |
Fri, 25 May 2007 13:17  |
Eclipse User |
|
|
|
Matthieu,
The cache annotation can only be used in the root of an inheritance strategy.
Teneo should detect that the superclass can be a mappedsuperclass, in this case the cache annotation
is allowed. This is a bug, please enter a bugzilla for this.
gr. Martin
Matthieu Helleboid wrote:
> Hello all,
>
> Can someone explain me (us) the reason why a class which has a mapped
> superClass cannot have a Cache annotation ?
>
> In class org.eclipse.emf.teneo.hibernate.mapper.EntityMapper line 387
>
> if (entity.getPaSuperEntity() == null &&
> ((HbAnnotatedEClass) entity).getHbCache() != null) {
> addCacheElement(entityElement, ((HbAnnotatedEClass) entity).getHbCache());
> }
>
> Thanks a lot.
> 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
|
|
|
Powered by
FUDForum. Page generated in 0.03351 seconds