Skip to main content


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: 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 Go to previous message
Ed Merks is currently offline Ed MerksFriend
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/
Previous Topic:Best way to reduce functions of a generated editor
Next Topic:CDO ReferentialIntegrityException
Goto Forum:
  


Current Time: Thu Apr 25 10:51:59 GMT 2024

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

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

Back to the top