|
Re: Problems reloading a new XML schema [message #423152 is a reply to message #423137] |
Tue, 23 September 2008 19:43 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
Ben,
Comments below.
Ben wrote:
> Hi,
>
> I need to update my genmodel with the new changes on my schema so I
> right-click on the genmodel file, select Reload... from the context
> menu, select my schema with the new changes, and click Finish.
>
> The genmodel is updated, however, my ecore file is totally recreated
> instead of updated so it losses all the constraints declared on the
> EClassifier via an EAnnotation.
It's only the GenModel that's reconciled. You can specify constraints
directly in the XSD as annotations using ecore:constraints="..."
>
> Is there workaround for this so my ecore model is updated (like the
> genmodel) instead of being recreated?
Specifying everything you need directly in the .xsd is the way to go.
>
> Thanks in advance!
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03283 seconds