[Teneo] Implementation classes only [message #422631] |
Thu, 11 September 2008 09:37  |
Eclipse User |
|
|
|
Originally posted by: luzi.anderegg.ergon.ch
Hi,
I have an EMF model with "Suppress Interfaces" set to true in the
corresponding genmodel (that is only implementation classes and no
interfaces are generated). When I run my program with assertions
enabled, my program stops with the following output:
at org.eclipse.emf.teneo.ERuntime.isSelfOrSuperContained(ERunti me.java:176)
at
org.eclipse.emf.teneo.ERuntime.computeContainedClasses(ERunt ime.java:152)
at org.eclipse.emf.teneo.ERuntime.register(ERuntime.java:92)
at
org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator .map(AnnotationGenerator.java:89)
at
org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:142)
at
org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:66)
at
org.eclipse.emf.teneo.hibernate.HbDataStore.mapEPackages(HbD ataStore.java:609)
at
org.eclipse.emf.teneo.hibernate.HbSessionDataStore.mapModel( HbSessionDataStore.java:155)
at
org.eclipse.emf.teneo.hibernate.HbSessionDataStore.initializ e(HbSessionDataStore.java:73)
Regards,
Luzi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: [Teneo] Implementation classes only [message #422887 is a reply to message #422881] |
Wed, 17 September 2008 17:33  |
Eclipse User |
|
|
|
Hi Luzi,
Can you send me the model and a small testcase? Then I can try it out myself.
gr. Martin
luciano wrote:
> Hi Martin,
>
>> Hi Luzi,
>> I tried to reproduce your case by adapting one of the testcases to
>> contain a
> list of eclass with
>> interface=true and this worked fine for me.
> In my case, it worked well for a quite a long time. The problems started
> when when I introduced some more references from a new class.
>> Can it be possible that you changed the model by setting interface to
>> true
> and then rerunned your
>> testcase on an existing database which had instances of the eclass
>> which was
> changed to interface to
>> true? (guessing here...)
> No, I cleaned up the database. When I look into the database, all the
> names seems to be correct. That's why. I thought some computation of the
> mapping may be wrong.
>
> Luzi
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
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.06373 seconds