Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] Cache annotation and superClass
[Teneo] Cache annotation and superClass [message #84979] Fri, 25 May 2007 15:08 Go to next message
Matthieu Helleboid is currently offline Matthieu HelleboidFriend
Messages: 18
Registered: July 2009
Junior Member
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 17:17 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
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 17:17 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
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
Previous Topic:[Transaction] createPrivilegedRunnable
Next Topic:[Teneo] new user questions
Goto Forum:
  


Current Time: Thu Apr 25 15:05:23 GMT 2024

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

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

Back to the top