Skip to content

Processing order for binding attributes to new metamodel

gbadner edited this page Jan 23, 2013 · 3 revisions

As each hierarchy is added to the Binder, create the EntityBinding objects, but don't bind attributes yet (or maybe only basic attributes)

After all sources have been added to Binder, bind attribute bindings in the following order:

  • Basic
  • Embeddable (basic sub-attributes only)
  • ToOne owners (including in embeddables)
  • ToOne mappedBy (including in embeddables)
  • Collection of basic elements
  • Collection of embeddable elements (including ToOne attributes, since the embeddable must own them)
  • ToMany owners
  • ToMany mappedBy