Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Saving two eResource(without c)
Saving two eResource [message #634458] Thu, 21 October 2010 19:22 Go to next message
Fabricio Pellegrini is currently offline Fabricio PellegriniFriend
Messages: 36
Registered: July 2009
Member


Hi,

Let me explain my current problem.

I have two resources A anb B. B has an element that refers to an element of A, this association is mapped as eOpposite, so the element of A also refers to the element of B.


When I call B.save(), it doesn't save A, and I lost the reference A->B.

I wanna know if there is a way to call the the A.save implicitly when I call B.save.


thanks
Re: Saving two eResource [message #634697 is a reply to message #634458] Fri, 22 October 2010 18:03 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33138
Registered: July 2009
Senior Member
Frabricio,

Comments below.


Fabricio Pellegrini wrote:
>
>
> Hi,
>
> Let me explain my current problem.
>
> I have two resources A anb B. B has an element that refers to an
> element of A, this association is mapped as eOpposite, so the element
> of A also refers to the element of B.
>
>
> When I call B.save(), it doesn't save A, and I lost the reference A->B.
You have to save both resources.
> I wanna know if there is a way to call the the A.save implicitly when
> I call B.save.
No, each resource must be saved separately.
>
>
> thanks
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Read different kinds of xml files into ecore models
Next Topic:Retrieving eObject From Ecore File
Goto Forum:
  


Current Time: Sat Apr 20 08:31:47 GMT 2024

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

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

Back to the top