Skip to main content



      Home
Home » Modeling » EMF » Validation Problems( Is EMap not considered serializable?)
Validation Problems [message #905713] Thu, 30 August 2012 19:55 Go to next message
Eclipse UserFriend
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?
Re: Validation Problems [message #905772 is a reply to message #905713] Fri, 31 August 2012 00:00 Go to previous message
Eclipse UserFriend
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?
>
Previous Topic:Best way to reduce functions of a generated editor
Next Topic:CDO ReferentialIntegrityException
Goto Forum:
  


Current Time: Wed Jul 23 14:44:23 EDT 2025

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

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

Back to the top