Validation Problems [message #905713] |
Thu, 30 August 2012 23:55 |
Paul Roubekas Messages: 207 Registered: March 2012 Location: Chattanooga, TN USA |
Senior Member |
|
|
Is EMap not considered serializable? When I run the "Validation" I get an error that a attribute, which has a EMap type, is not transient so it must be serialzable. I don't want the attribute to be transient. I am a newbie. What am I missing?
Oxygen 3a
Windows 10
|
|
|
Re: Validation Problems [message #905772 is a reply to message #905713] |
Fri, 31 August 2012 04:00 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
Paul,
It sounds like you have an EDataType, that attribute's eType, and that
EDataType is not marked as serializable true in the Ecore model. Such
an EDataType can't be converted to and from a String so there's no
method for doing that conversion in the generated XyzFactoryImpl and, as
a result, it can't be used at the type of any non-transient features.
You need to set that property to true and you need to implement the
conversion methods for it in the generated factory (if the default
reflective approach doesn't work).
On 31/08/2012 1:55 AM, Paul Roubekas wrote:
> Is EMap not considered serializable? When I run the "Validation" I
> get an error that a attribute, which has a EMap type, is not transient
> so it must be serialzable. I don't want the attribute to be
> transient. I am a newbie. What am I missing?
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.02667 seconds