<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www.ormfoundation.org/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Open Discussion &amp; Feature Requests</title><link>http://www.ormfoundation.org/forums/10.aspx</link><description>This is where you can discuss your suggestions for functions that are not provided by the current release of the NORMA tool. You can also ask questions on how to use the tool.</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 20917.1142)</generator><item><title>Re: Relation mapping of subtypes</title><link>http://www.ormfoundation.org/forums/thread/3188.aspx</link><pubDate>Tue, 29 Jan 2013 01:52:47 GMT</pubDate><guid isPermaLink="false">9d039735-a311-4a8d-9c49-a0bb2572af9e:3188</guid><dc:creator>Matthew Curland</dc:creator><slash:comments>0</slash:comments><comments>http://www.ormfoundation.org/forums/thread/3188.aspx</comments><wfw:commentRss>http://www.ormfoundation.org/forums/commentrss.aspx?SectionID=10&amp;PostID=3188</wfw:commentRss><description>&lt;p&gt;Hi Jacob,&lt;/p&gt;
&lt;p&gt;You&amp;#39;re not missing anything.&amp;nbsp;Single-table&amp;nbsp;relational mapping with&amp;nbsp;asserted subtypes that play no other roles is an undone in NORMA. The only way to generate this data right now is to push the asserted subtypes into a separate table. This can be done by choosing the subtype connector and setting the Relational Mapping AbsorptionChoice property to &amp;#39;Not Absorbed&amp;#39; (selecting the subtype and setting the AbsorptionChoice to &amp;#39;Separate&amp;#39; is an equivalent action).&lt;/p&gt;
&lt;p&gt;The general solution to this problem is far from trivial because &amp;#39;isSubtype&amp;#39; column falls into one of three categories:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;If the subtype plays no other roles, this is an asserted boolean column.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;If the subtype plays no mandatory roles, then the column is semi-derived (derivably true if any roles are played, asserted if no roles are played).&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;If the subtype plays at least one mandatory role then the column is fully derived. However, the derivation may not be trivial because the mandatory&amp;nbsp;role may be expressed outside the current table.&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;In most models, subtypes will actually play additional roles. In fact, Terry recommends not creating subtypes if they subtype plays no additional roles. The end result is that as the model matures, in practice you get very few subtypes with no role players.&lt;/p&gt;
&lt;p&gt;If you find that you have a large subtype tree where the subtypes play no roles, you may want to consider a PartyType style fact type on the supertype.&lt;/p&gt;
&lt;p&gt;The NORMA RMAP is&amp;nbsp;still relatively basic. This is one area that&amp;nbsp;those funding NORMA-related development have had little interest in for the&amp;nbsp;past few years, but that is rapidly changing, so Terry (SQL guru)&amp;nbsp;and I will be spending more time on this area&amp;nbsp;in the next year.&lt;/p&gt;
&lt;p&gt;-Matt&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Relation mapping of subtypes</title><link>http://www.ormfoundation.org/forums/thread/3184.aspx</link><pubDate>Mon, 28 Jan 2013 21:37:29 GMT</pubDate><guid isPermaLink="false">9d039735-a311-4a8d-9c49-a0bb2572af9e:3184</guid><dc:creator>jacobvos</dc:creator><slash:comments>0</slash:comments><comments>http://www.ormfoundation.org/forums/thread/3184.aspx</comments><wfw:commentRss>http://www.ormfoundation.org/forums/commentrss.aspx?SectionID=10&amp;PostID=3184</wfw:commentRss><description>&lt;p&gt;Let&amp;#39;s take as starting point the following simple model:&lt;/p&gt;&lt;p&gt;- Entity type &amp;#39;Party&amp;#39;&lt;br /&gt;- Entity type &amp;#39;Partner&amp;#39;, subtype of &amp;#39;Party&lt;br /&gt;- Entity type &amp;#39;Customer&amp;#39;, subtype of &amp;#39;Party&amp;#39;&lt;br /&gt;- Entity type &amp;#39;Consumer&amp;#39;, subtype of &amp;#39;Customer&amp;#39; &lt;br /&gt;- Entity type &amp;#39;Business customer&amp;#39;, subtype of &amp;#39;Customer&amp;#39;&lt;/p&gt;&lt;p&gt;When making a relational mapping, I have one entity type &amp;#39;Party&amp;#39;. That&amp;#39;s OK.&lt;/p&gt;&lt;p&gt;Now I would expect in the entity type &amp;#39;Party&amp;#39; a way to indicate what kind of party it is.&lt;/p&gt;&lt;p&gt;What is my wrong reasoning?&lt;/p&gt;&lt;p&gt;Do I have to add to the ORM model a fact type &amp;#39;Party is of Party_Type&amp;#39; (with possible values of &amp;#39;Party_Type&amp;#39;: Partner, Consumer, Business customer)?&lt;/p&gt;&lt;p&gt;Jacob &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>