{"id":818,"date":"2017-03-16T15:37:31","date_gmt":"2017-03-16T15:37:31","guid":{"rendered":"http:\/\/onefact-migrate.zipfish-sites.io\/?p=818"},"modified":"2020-12-16T16:10:20","modified_gmt":"2020-12-16T16:10:20","slug":"collapsed-referential","status":"publish","type":"post","link":"https:\/\/onefact.net\/collapsed-referential\/","title":{"rendered":"Collapsed Referential"},"content":{"rendered":"<p>A <em>referential attribute<\/em> (aka foreign key) is an attribute that refers to another attribute which is an identifier (aka key) in another class. Shlaer-Mellor supports\u00a0the concept of combining two referential attributes that must always have the same value. This is a powerful way to constrain the data set represented in your model.<br \/>\nThis concept can be extended to non-referential attributes. One such technique is termed <em>collapsed referential<\/em>. A collapsed referential combines a referential with another attribute that is not a referential (base attribute).<br \/>\nThe elegant model here depicts using this approach to propagate the identifier of a tree into every node of the tree.<\/p>\n<p><img fetchpriority=\"high\" alt='treenode-300x221-3958887' class=\"alignnone size-medium wp-image-819\" src='https:\/\/onefact.net\/wp-content\/uploads\/2017\/03\/treenode-300x221-3958887.png' alt=\"\" width=\"300\" height=\"221\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A referential attribute (aka foreign key) is an attribute that refers to another attribute which is an identifier (aka key) in another class. Shlaer-Mellor supports\u00a0the concept of combining two referential attributes that must always have the same value. This is a powerful way to constrain the data set represented in your model. This concept can [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":1367,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-818","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"jetpack_featured_media_url":"https:\/\/onefact.net\/wp-content\/uploads\/2017\/03\/treenode-300x221-3958887.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/onefact.net\/wp-json\/wp\/v2\/posts\/818","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/onefact.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/onefact.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/onefact.net\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/onefact.net\/wp-json\/wp\/v2\/comments?post=818"}],"version-history":[{"count":1,"href":"https:\/\/onefact.net\/wp-json\/wp\/v2\/posts\/818\/revisions"}],"predecessor-version":[{"id":1551,"href":"https:\/\/onefact.net\/wp-json\/wp\/v2\/posts\/818\/revisions\/1551"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/onefact.net\/wp-json\/wp\/v2\/media\/1367"}],"wp:attachment":[{"href":"https:\/\/onefact.net\/wp-json\/wp\/v2\/media?parent=818"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/onefact.net\/wp-json\/wp\/v2\/categories?post=818"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/onefact.net\/wp-json\/wp\/v2\/tags?post=818"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}