Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] Problems with inherited field
[Teneo] Problems with inherited field [message #609445] Fri, 10 August 2007 09:49
Eclipse UserFriend
Originally posted by: doux.guil.gmail.com

Hi all,

I'm always experiencing problem with Teneo.

I have models that are conformed to a meta model.

The problem is that when I try to deserialize the model from an ecore
file, if I register the meta models packages from the meta models loaded
from an ecore file it works fine and I can deserialize my model.

But when I try to get my meta model from Teneo (assuming that the meta
model getting from Teneo vas previously persisted by taking the meta
model coming from the ecore file), I obtain an Exception :

org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Feature
'val' not found. (file:///C:/eclipse-SDK-3.3-
win32/workspace/TestPlugin/deb_res_thunderbird.ecore, 8, 106)
at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors
(XMLLoadImpl.java:81)
at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load
(XMLLoadImpl.java:189)
at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad
(XMLResourceImpl.java:180)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load
(ResourceImpl.java:1354)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load
(ResourceImpl.java:1155)
at test.TestStoreMetaModel.main(TestStoreMetaModel.java:131)
Caused by: org.eclipse.emf.ecore.xmi.FeatureNotFoundException: Feature
'val' not found. (file:///C:/eclipse-SDK-3.3-
win32/workspace/TestPlugin/deb_res_thunderbird.ecore, 8, 106)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.reportUnknownFeatu re
(XMLHandler.java:1856)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleUnknownFeatu re
(XMLHandler.java:1820)
at org.eclipse.emf.ecore.xmi.impl.XMIHandler.handleUnknownFeatu re
(XMIHandler.java:149)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.setAttribValue
(XMLHandler.java:2570)
at
org.eclipse.emf.ecore.xmi.impl.SAXXMIHandler.handleObjectAtt ribs
(SAXXMIHandler.java:76)

....



So, I have seen that the "val" feature that isn't found is an inherited
attribute. And If I remove all the inherited element from my model It
works.


I have also seen that the mapping generated by Teneo for a meta model
are not the same if the meta model come directly from my ecore file or
if it is a meta model persisted with Teneo.
With the same properties for the initialization of the hbdatastore
(inheritance mapping setted to SINGLE_TABLE), the subclasses are not
mapped in the same way :
- when the meta model come from the ecore file only one table is
created for a class hierarchy as it is say on
http://www.elver.org/hibernate/inheritance.html

- when the "same" meta model come from Teneo the mapping create
also tables for the subclasses.


It is a problem for me because I have to do a models and meta models
repository, so I must be able to add/get/remove models corresponding to
meta models that are stored in Teneo (without the ecore files containing
the metamodels). But here the meta models coming from file or coming
from Teneo appears to not being equivalent and it doesn't work...

I'm trying to solve it from a long time but I con't find the solution...


If anyone can help me, I will be very happy.



Thanks,


Guillaume Doux
Previous Topic:[Teneo] New feature I've written for your consideration / discussion: extended references
Next Topic:Re: How can I use EMF Compare programatically
Goto Forum:
  


Current Time: Sat Apr 27 00:59:16 GMT 2024

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

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

Back to the top