Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [Teneo] new eobject reference is EObjectWithInverseResolvingEList
[Teneo] new eobject reference is EObjectWithInverseResolvingEList [message #1066816] Thu, 04 July 2013 13:56 Go to next message
Ricky de Klerck is currently offline Ricky de KlerckFriend
Messages: 295
Registered: January 2011
Senior Member
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:
index.php/fa/15475/0/

EObjectWithInverseResolvingEList:
index.php/fa/15476/0/

Why is this and how can I solve it..?
Re: [Teneo] new eobject reference is EObjectWithInverseResolvingEList [message #1066822 is a reply to message #1066816] Thu, 04 July 2013 14:09 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
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 #1066825 is a reply to message #1066822] Thu, 04 July 2013 14:14 Go to previous messageGo to next message
Ricky de Klerck is currently offline Ricky de KlerckFriend
Messages: 295
Registered: January 2011
Senior Member
The problem is that when I import a document (via stored procedure), I try to refresh the folder but the document isn't visible. It works well with an 'old' document.
Re: [Teneo] new eobject reference is EObjectWithInverseResolvingEList [message #1066898 is a reply to message #1066825] Fri, 05 July 2013 05:54 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Ricky,
I would need some more info, in the first post you say newly added document, this is added on the client? And then on
the server you add another and refreshing the folder doesn't help?
What is new and what is old the folder or the document?

gr. Martin

On 07/04/2013 04:14 PM, Ricky de Klerck wrote:
> The problem is that when I import a document (via stored procedure), I try to refresh the folder but the document isn't
> visible. It works well with an 'old' document.


--

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 Go to previous messageGo to next message
Ricky de Klerck is currently offline Ricky de KlerckFriend
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

Re: [Teneo] new eobject reference is EObjectWithInverseResolvingEList [message #1067282 is a reply to message #1066919] Mon, 08 July 2013 08:01 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Ricky,
Strange the difference in behavior between subfolder1 and subfolder2. Normally when creating and saving a record then
its collections should also be replaced by a hibernate elist...

Can you enter a bugzilla for this? Sorry to say I am a bit overloaded with work at the moment. But feel free to ping me
often on this, it really helps...

gr. Martin

On 07/05/2013 09:18 AM, Ricky de Klerck wrote:
> 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 another document in 'SUBFOLDER2', the document is added in the database but it isn't visible
> when I call refresh(SUBFOLDER2).
>


--

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 #1067294 is a reply to message #1067282] Mon, 08 July 2013 08:45 Go to previous message
Ricky de Klerck is currently offline Ricky de KlerckFriend
Messages: 295
Registered: January 2011
Senior Member
Sure, no problem.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=412481

[Updated on: Mon, 08 July 2013 09:06]

Report message to a moderator

Previous Topic:Need an Adapter to be notified of changing references (with containment="false")
Next Topic:Interface optimization
Goto Forum:
  


Current Time: Sat Apr 27 01:25:18 GMT 2024

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

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

Back to the top