Storing GMF diagram object with teneo [message #615548] |
Sun, 24 February 2008 12:27 |
Manfred Hahn 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
|
|
|
Powered by
FUDForum. Page generated in 0.03629 seconds