in

The ORM Foundation

Get the facts!

finding orphan objects

Last post Tue, Sep 30 2008 10:00 by Matthew Curland. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • Mon, Sep 29 2008 15:45

    • JimLudden
    • Top 10 Contributor
      Male
    • Joined on Wed, Jul 16 2008
    • Taos, New Mexico, USA
    • Posts 75

    finding orphan objects

    I have a few objects that were deleted from diagrams but not from the data. I call these 'orphans'.

    How can I find orphaned objects?

  • Tue, Sep 30 2008 10:00 In reply to

    Re: finding orphan objects

    The majority of these result from explicitly setting a preferred identifier, which orphans the old FactType/ValueType pair. I also change the default in the Tools/Options/ORM Designer page so Delete deletes the underlying object and Ctrl-Delete deletes the shape (see the Delete Key Behavior option).

    The easiest way to see these is to scan the ObjectTypes in the ORM Model with the ORM Context Window open. If an ObjectType appears unattached and without an Independent set then it is likely an orphan. You can verify this by seeing if the 'Select on Diagram' menu is available from the model browser.

    First, delete the Object Types, then open the Error List (View\Error List) and double click errors resulting in 'requires a role player'. This will select the Role in the model browser, activate the Properties Window, and open the Role Player picker. Probably a bit more than you want, but at least it finds the FactType for you. You can also scan the FactType list for names containing [Missing] and delete them directly.

    Obviously, we need to work more on this scenario. It isn't a completely trivial problem because of the collapsed and implied FactTypes/ObjectTypes/Constraints in the model.

     -Matt

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