|
Re: [Teneo] new eobject reference is EObjectWithInverseResolvingEList [message #1066822 is a reply to message #1066816] |
Thu, 04 July 2013 14:09 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi Ricky,
This is somewhat standard, the way it works, what is the problem or error?
gr. Martin
On 07/04/2013 03:56 PM, Ricky de Klerck wrote:
> Hi,
>
> In our application we have this (simplified) model:
>
> - Folder
> -- folders : Folder
> -- documents : Document
> - Document
> -- parentFolder : Folder
>
> When everything is loaded the reference 'documents' is a HibernatePersistableEList, but when newly added, it is a EObjectWithInverseResolvingEList.
>
> HibernatePersistableEList:
>
>
> EObjectWithInverseResolvingEList:
>
>
> Why is this and how can I solve it..?
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
|
|
|
|
|
Re: [Teneo] new eobject reference is EObjectWithInverseResolvingEList [message #1066919 is a reply to message #1066898] |
Fri, 05 July 2013 07:18 |
Ricky de Klerck Messages: 295 Registered: January 2011 |
Senior Member |
|
|
Ok, this is the begin data:
- ROOTFOLDER
-- SUBFOLDER1
The client imports a document in 'SUBFOLDER1'. This is done via a stored procedure. This procedure adds a document in the database. When I call hibernatesession.refresh(SUBFOLDER) the structure is like this:
- ROOTFOLDER
-- SUBFOLDER1
--- IMPORTEDDOCUMENT1
Then the clients creates a new folder (via AddCommand in editing domain). This gets saved and the folder is stored in the database. The structure looks like this:
- ROOTFOLDER
-- SUBFOLDER1
--- IMPORTEDDOCUMENT1
-- SUBFOLDER2
When the clients imports a document in 'SUBFOLDER2', the document is added in the database but it isn't visible when I call refresh(SUBFOLDER2).
I think it is because of the documents feature is a 'EObjectWithInverseResolvingEList'....
[Updated on: Fri, 05 July 2013 07:19] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02937 seconds