Restore ecore after circuit changes

I have a schema in an xsd file. a new version of the schema is created from time to time, and I need to update my .ecore (and .genmodel). How to update them without deleting them and re-creating them. I made some manual modification for ecore and I want to save these changes.

ido.

+3
source share
4 answers

Use the Reload ... action on * .genmodel to update * .ecore based on the new version * .xsd.

+3
source

And do not directly change .ecore. Using ecore: annotations in a schema. http://www.eclipse.org/modeling/emf/docs/overviews/XMLSchemaToEcoreMapping.pdf

+1

, XSD FAQ :

JAXB Java API XML-, , , . EMF Ecore XML , Java API ( ). XML Ecore , , Java API , Java API . The , . , EMF XML- ( 2.0, ).

, , , , .

0

, . :

  • , "Gen" - , setWhateverGen setWhatever - "Gen" . "Gen" , , non-Gen, .
  • @generated. "NOT" - @generated NOT - .

All other materials must be combined. Go ahead and experiment - what version control is for ....

0
source

Source: https://habr.com/ru/post/1714710/


All Articles