Skip to main content



      Home
Home » Modeling » EMF » EMF serialization
EMF serialization [message #650828] Wed, 26 January 2011 13:05 Go to next message
Eclipse UserFriend
Hello!

I send my EMF-objects from a client to a server via RMI. This works fine as long as I don't have a bidirecitonal containment relationship. As the only information in the contained object about its container is in the eContainer field in EObjectImpl and eContainer doesn't get serialized the getXXX()-call for it returns null.

I read some posts about EMF and serialization and as far as I remember Ed talked about a plan to enable serialization for the ECore types. Is anything going on in this field? Or is there another solution to my problem?

Thanks for your help,
Günther
Re: EMF serialization [message #650833 is a reply to message #650828] Wed, 26 January 2011 13:23 Go to previous messageGo to next message
Eclipse UserFriend
This is a multi-part message in MIME format.
--------------080404040601000308030908
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

Günther,

Nothing has been done with this yet:

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


Günther Mahr wrote:
> Hello!
>
> I send my EMF-objects from a client to a server via RMI. This works
> fine as long as I don't have a bidirecitonal containment relationship.
> As the only information in the contained object about its container
> is in the eContainer field in EObjectImpl and eContainer doesn't get
> serialized the getXXX()-call for it returns null.
> I read some posts about EMF and serialization and as far as I remember
> Ed talked about a plan to enable serialization for the ECore types. Is
> anything going on in this field? Or is there another solution to my
> problem?
>
> Thanks for your help, Günther

--------------080404040601000308030908
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Günther,<br>
<br>
Nothing has been done with this yet:<br>
<blockquote><a
href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=245014">https://bugs.eclipse.org/bugs/show_bug.cgi?id=245014</a><br>
</blockquote>
<br>
Günther Mahr wrote:
<blockquote cite="mid:ihpnei$age$1@news.eclipse.org" type="cite">Hello!
<br>
<br>
I send my EMF-objects from a client to a server via RMI. This works
fine as long as I don't have a bidirecitonal containment relationship.
As the only information in the contained object about its container  is
in the eContainer field in EObjectImpl and eContainer doesn't get
serialized the  getXXX()-call for it returns null. <br>
I read some posts about EMF and serialization and as far as I remember
Ed talked about a plan to enable serialization for the ECore types. Is
anything going on in this field? Or is there another solution to my
problem?
<br>
<br>
Thanks for your help, Günther
<br>
</blockquote>
</body>
</html>

--------------080404040601000308030908--
Re: EMF serialization [message #650852 is a reply to message #650833] Wed, 26 January 2011 15:32 Go to previous messageGo to next message
Eclipse UserFriend
Thank you for your quick answer, Ed!
Just one more remark (question): must it then be said that EMF (without CDO) is currently not suitable for a typical 3-tier environment including a Rich Client ?

Thanks again,
Günther
Re: EMF serialization [message #650865 is a reply to message #650852] Wed, 26 January 2011 17:37 Go to previous messageGo to next message
Eclipse UserFriend
There is texo which is able to translate from EMF to POJOs hence it
might help in a 3-tier application.

Tom

Am 26.01.11 21:32, schrieb Günther Mahr:
> Thank you for your quick answer, Ed! Just one more remark (question):
> must it then be said that EMF (without CDO) is currently not suitable
> for a typical 3-tier environment including a Rich Client ?
>
> Thanks again, Günther
Re: EMF serialization [message #650970 is a reply to message #650865] Thu, 27 January 2011 05:51 Go to previous message
Eclipse UserFriend
Thank you for the hint, Tom! I will look at Texo and might consider it in the future. At the moment I'm trying to get around by just not using contained bidirectional relationships (by making them ONLY bidirectional). This seems like a good solution as I will probably not be able to use any automatism connected to containment anyway when I implement a custom persistance solution with IBatis on the server.

Kind Regards,
Günther
Previous Topic:Slides and Examples for a half-day EMF Tutorial
Next Topic:[Teneo] Delete orphans in non-contaiment references
Goto Forum:
  


Current Time: Sun Jul 06 08:19:34 EDT 2025

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

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

Back to the top