Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Storing GMF diagram object with teneo
Storing GMF diagram object with teneo [message #615548] Sun, 24 February 2008 12:27
Manfred Hahn is currently offline Manfred HahnFriend
Messages: 64
Registered: July 2009
Member
Hi everybody

I am writing a GMF application and try for the first time to store the GMF
diagram model information into a Hibernate database using teneo. The
diagram itself is empty, but I have to create a diagram object when I want
to open a new diagram editor.

I got a null pointer exception when I am saving this resource.
The exception is thrown in the EListPropertyHandler.set() method, because
the javaField, determined with FieldUtil.getField(), is null.

Debugging the problem I found out, that the field name for the
getField-method is the name of a feature of the diagram-object: "children"
(in fact it is a feature of the base class "View").

The getField() method tries to get a java class field in the class
"Diagram" or the base classes, but there is no field with that name. The
fields that are found have names like "persistedChildren" or
"transientChildren" or "allChildren".

So the features of the Diagram class and the fields of the Diagram class
are different. The field to save will never be found using this strategie.

Has anyone a hint how I can solve this problem?

Thank you,
Manfred
Previous Topic:[Teneo] Abstract classes in top entities
Next Topic:Store Resource does not allow editing properties with EMF generated property editor
Goto Forum:
  


Current Time: Mon Jun 21 02:27:12 GMT 2021

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

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

Back to the top