|Re: teneo, databinding, model and a treeview [message #621970 is a reply to message #621969]
||Thu, 07 January 2010 17:36
| Martin Taal
Registered: July 2009
Indeed objects loaded from the database have the hibernatepersistableelist and new objects have an EMF elist. However,
this normally works fine. So afaics this is not the problem. I guess you don't see exceptions etc.?
Apart from this the only thing you can do is debug some more into the HibernateResource (in the method taking care of
saving to the database)?
Then when you have more info just post it on the EMF newsgroup and I can take a further look.
Teneo is supported on the EMF newsgroup which I added as cc.
> I have made a small RCP-Application. I work with databinding and a
> Treeview. My datamodel represents a tree of folders like the Windows
> Explorer. I can add Folders and Subfolders and it works fine.
> Now I would store the "folders" in a database with teneo. If I load my
> application I can add folders and subfolders to existing folders and
> subfolders. The TreeViewer shows the new folders and subfolders. These
> folders are also stored. But if I add subfolders to the new folders or
> subfolders, the TreeViewer shows these folder but they where not stored.
> Maybe, someone have a good tutorial ore an idea.
> The property "children" of a loaded item contains a
> HibernatePersistableEList<E>. But the "children"-property of an added
> item contains an EObjectWithInverseResolvingEList<E>.
> I think, this is the problem.
With Regards, Martin Taal
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: firstname.lastname@example.org - email@example.com
Web: www.springsite.com - www.elver.org
Powered by FUDForum
. Page generated in 0.02334 seconds