in

The ORM Foundation

Get the facts!

Fragments in Two Files

Last post Tue, Jul 19 2011 18:57 by Matthew Curland. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • Tue, Jul 19 2011 13:25

    Fragments in Two Files

    I like using NORMA to develop ORM model fragments, including populating them with test data, and saving them in separate files. Is there a way to move the fragments into a common file - either using import/export, cut/paste or some other capability?

  • Tue, Jul 19 2011 18:57 In reply to

    Re: Fragments in Two Files

    Have you used the cross-model drag-drop features I added in the December 2010 release? Follow the links from the December 2010 CTP Changes section in the readme file.

    As discussed in the readme, cross-model drag merge operations are based on pattern matching. Elements in different files have different identifiers, and there is no historical record kept of where an element came from. This type of historical tracking of element sources requires tracking of significantly more information. For example, if an ObjectType is merged from a source model into a target model (with source information), the ObjectType name is changed, and the merge operation is performed a second time, what should be done? The historical information says that the two object types are the same, but a pattern match says otherwise. This requires user intervention to choose the action (keep the object types connected in spite of the pattern difference and restore the original values, keep the connection and preserve the changes in the target model, break the connection and create a new copy of the source ObjectType) and a way to store these user choices so that the merge can be repeated without intervention.

    Getting this all together would obviously be a lot of work, and the pattern-based merge is a preliminary requirement for implementing this type of historical import tracking. Hopefully it will cover your workflow and let you work smoothly with your separate model files.

    -Matt

Page 1 of 1 (2 items)
© 2008-2024 ------- Terms of Service