|GMF Databaseconnection Issue [message #684427]
||Wed, 15 June 2011 10:54
Registered: October 2009
i want to store/load all GMF-diagram and modelcontent into a postgressql-database.
To learn how it could be done, i`m trying the hibernate/teneo/gmf-example (mindmap) with changes to use postgres-DB.
I´m able to store and load the node-element ("Topic"). At this point i`m able to close and reopen editor without failure.
When i connect two nodes with a connection-element ("Subtopic"), safe, close and reopen the editor, the editor remains "dirty".
Trying to safe in this state causes
object references an unsaved transient instance - save the transient instance before flushing: Edge"
"org.hibernate.ObjectDeletedException: deleted object would be re-saved by cascade (remove deleted object from associations)"
I read a lot and tried a lot of different settings in hibernate.hbm.xml especially different cascade-settings but nothing works.
Maybe someone knows the answer.
With kind regards
Powered by FUDForum
. Page generated in 0.01781 seconds