|
Re: The attribute "xyz" is not transient so it must have a data type that is serializable? [message #512937 is a reply to message #512813] |
Mon, 08 February 2010 11:45 |
Ed Merks Messages: 33216 Registered: July 2009 |
Senior Member |
|
|
This is a multi-part message in MIME format.
--------------030304080206030904050300
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Michael,
If you defined a map like, this it will be serialized automatically:
2.29 How do I create a Map in EMF?
< http://wiki.eclipse.org/index.php/EMF/FAQ#How_do_I_create_a_ Map_in_EMF.3F>
But if you define an EDataType, then you're responsible for how to
serialize an instance of that as a whole.
Michael Moser wrote:
> I defined an attribute as EMap<?,?> at which point I got the subject
> error message. But also after changing the two arguments to EString
> (i.e. the type now reads EMap<EString, EString>) I keep getting that
> error message. I would argue, that String ARE serializable. Or are
> EStrings not?
>
> Michael
>
--------------030304080206030904050300
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Michael, <br>
<br>
If you defined a map like, this it will be serialized automatically:<br>
<blockquote><a
href=" http://wiki.eclipse.org/index.php/EMF/FAQ#How_do_I_create_a_ Map_in_EMF.3F"><span
class="tocnumber">2.29</span> <span class="toctext">How do I create a
Map in EMF?</span></a><br>
</blockquote>
But if you define an EDataType, then you're responsible for how to
serialize an instance of that as a whole.<br>
<br>
<br>
Michael Moser wrote:
<blockquote cite="mid:hknihc$f35$1@build.eclipse.org" type="cite">I
defined an attribute as EMap<?,?> at which point I got the
subject error message. But also after changing the two arguments to
EString (i.e. the type now reads EMap<EString, EString>) I keep
getting that error message. I would argue, that String ARE
serializable. Or are EStrings not?
<br>
<br>
Michael
<br>
<br>
</blockquote>
</body>
</html>
--------------030304080206030904050300--
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04460 seconds