|
Re: Serialisation issue with EMF ChangeDescription [message #757971 is a reply to message #757427] |
Fri, 18 November 2011 13:23 |
Ed Merks Messages: 33137 Registered: July 2009 |
Senior Member |
|
|
Paul,
Comments below.
On 18/11/2011 1:11 PM, Paul wrote:
> Hi,
>
> We are having an issue when deserialising the a ChangeDescription to a a bi-directional one to many relationship.
>
> When its serialized the manyToOne has a referenceValue in the XML, however when its deserialised the referenceValue in the FeatureChange is null and if we attempt to access the "Value" it throws a null pointer exception when attempting to do
> EStructuralFeature feature = getFeature();
That looks familiar. You've tried this with EMF 2.7?
>
> The other side of the relationship looks to be fine and the referenceValues in the listChanges gets initialised properly.
>
> Is there something we have missed?
>
> Junit test case method included to indicate issue.
Can you provide a unit test that doesn't include these dependencies:
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.transaction.annotation.Transactional;
import com.ses.osp.domain.sy.context.OspResourceSet;
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.02155 seconds