Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Validation Problems( Is EMap not considered serializable?)
Validation Problems [message #905713] Thu, 30 August 2012 23:55 Go to next message
Paul Roubekas is currently offline Paul RoubekasFriend
Messages: 6
Registered: March 2012
Location: North Carolina
Junior 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?
Re: Validation Problems [message #905772 is a reply to message #905713] Fri, 31 August 2012 04:00 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 26215
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?
>
Previous Topic:Best way to reduce functions of a generated editor
Next Topic:CDO ReferentialIntegrityException
Goto Forum:
  


Current Time: Mon Nov 24 01:36:53 GMT 2014

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

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