<?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>Technical support</title><link>http://www.ormfoundation.org/forums/30.aspx</link><description>For discussing installation and setup, bugs and other technical issues with the NORMA.</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 20917.1142)</generator><item><title>Re: Relational View with 0..1 to a 0..1</title><link>http://www.ormfoundation.org/forums/thread/2987.aspx</link><pubDate>Thu, 03 May 2012 23:24:47 GMT</pubDate><guid isPermaLink="false">9d039735-a311-4a8d-9c49-a0bb2572af9e:2987</guid><dc:creator>Matthew Curland</dc:creator><slash:comments>0</slash:comments><comments>http://www.ormfoundation.org/forums/thread/2987.aspx</comments><wfw:commentRss>http://www.ormfoundation.org/forums/commentrss.aspx?SectionID=30&amp;PostID=2987</wfw:commentRss><description>&lt;p&gt;Sorry I didn&amp;#39;t jump in here earlier.&lt;/p&gt;
&lt;p&gt;This is a good idea, but in practice is harder to implement than it sounds because if there are multiple 1-1 fact types attached to the same object type the user settings can be contradictory and cause some horrific issues with the mapping algorithm.&lt;/p&gt;
&lt;p&gt;There are a number of tie-breakers that are looked at to determine absorption direction. However, if the mandatory constraints are balanced (no mandatories, or mandatory on both sides), both role players are entity types, and tables exist for both role players, then you&amp;#39;re basically in a tie.&lt;/p&gt;
&lt;p&gt;With a tie in place, the first role in the fact type wins. Unfortunately, there is no way to change the role order in the tool. Fact type shapes and readings maintain their own orders, but the role order itself is rarely used and cannot be changed after the fact type has been created.&lt;/p&gt;
&lt;p&gt;To change the role order in these cases:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Save a backup copy of the .orm file.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Open the .orm file with the Visual Studio .xml editor. You can do this by clicking the down arrow on the right edge of the Open button in the VS Open File dialog and choosing &amp;#39;Open With...&amp;#39; and choosing the &amp;#39;XML (text) Editor&amp;#39;. Alternately, I always turn on the &amp;#39;Show Miscellaneous files in Solution Explorer&amp;#39; option (on the Environment/Documents page of the Tools/Options dialog). If you close an .orm file that is not in a project, it will appear in this list and you can right click to &amp;#39;Open With...&amp;#39;. You cannot view the .orm file simultaneously in the XML and NORMA designers.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;With the .orm file open in the .xml editor, find your fact type&amp;nbsp; (search for the the condensed&amp;nbsp;name shown in the model browser). You should see this in the _Name attribute of an orm:Fact tag.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;You&amp;#39;ll see orm:Role&amp;nbsp;elements inside the orm:FactRoles block immediately inside the orm:Fact element. The order of the orm:Role nodes provides the primary fact type order.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Change the role order by switching the order of the orm:Role elements.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Save the file and reopen in the designer.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;The fact type shapes may display with the lines crossed for the modified fact type. Just drag one role on the other to get the correct display order.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;To force the relational model to regenerate:&lt;/div&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Add a new entity type to the design surface and sets its refmode to an intrinsic ref mode (like .id), or add a value type and set its data type.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Delete the new type (do not Undo)&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;(Advanced alternative to force regeneration on load: You can change the number of the ormtooial:AbstractionModelGenerationSetting@AlgorithmVersion attribute to force regeneration on load, or just delete the full orm:GenerationState block)&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;li&gt;
&lt;div&gt;At this point you should see the 1-1 going the other direction, but only if there really was a tie in the system.&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;-Matt&lt;/p&gt;</description></item><item><title>Re: Relational View with 0..1 to a 0..1</title><link>http://www.ormfoundation.org/forums/thread/2962.aspx</link><pubDate>Tue, 28 Feb 2012 22:20:40 GMT</pubDate><guid isPermaLink="false">9d039735-a311-4a8d-9c49-a0bb2572af9e:2962</guid><dc:creator>Looopy</dc:creator><slash:comments>0</slash:comments><comments>http://www.ormfoundation.org/forums/thread/2962.aspx</comments><wfw:commentRss>http://www.ormfoundation.org/forums/commentrss.aspx?SectionID=30&amp;PostID=2962</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;Ken Evans:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;Looopy:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;. the thing i am try to accomplish is that both a employee and customer can share the same login and its not mandatory that they should be able to login and its not mandatory for a person to do a login either.

&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Please refer to my example.&lt;br /&gt;If you:&lt;br /&gt;1: remove the mandatory requirement in the fact type &amp;quot;Person has WebLogin&amp;quot;&lt;br /&gt;2: remove the exclusion constraint between the employee and customer subtypes &lt;br /&gt;&lt;br /&gt;Then:&lt;/p&gt;&lt;p&gt; * an employee and a customer can share the same login (i.e. one person can be both a customer and an employee)&lt;br /&gt;* it is not mandatory that a person has a login &lt;br /&gt;* it is not mandatory for a customer or employee to login (since both subtypes share the non-mandatory nature of the &amp;quot;Person has WebLogin&amp;quot; fact type.)&lt;/p&gt;&lt;p&gt;And&lt;/p&gt;&lt;p&gt;If you want to add &amp;quot;contacts&amp;quot; that are neither customers nor employees &lt;br /&gt;Then then you could add a unary &amp;quot;Person is contact&amp;quot; &lt;br /&gt;or add &amp;quot;Contact&amp;quot; as a new subtype of person and then add a fact type about &amp;quot;Contact&amp;quot; that is not true of Customer or Employee.&lt;/p&gt;&lt;p&gt;Ken &lt;br /&gt;&lt;/p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;

Thanks Ken i will look into this.</description></item><item><title>Re: Relational View with 0..1 to a 0..1</title><link>http://www.ormfoundation.org/forums/thread/2961.aspx</link><pubDate>Tue, 28 Feb 2012 22:19:12 GMT</pubDate><guid isPermaLink="false">9d039735-a311-4a8d-9c49-a0bb2572af9e:2961</guid><dc:creator>Looopy</dc:creator><slash:comments>0</slash:comments><comments>http://www.ormfoundation.org/forums/thread/2961.aspx</comments><wfw:commentRss>http://www.ormfoundation.org/forums/commentrss.aspx?SectionID=30&amp;PostID=2961</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;Andy Carver:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;Hi, Yes you are correct, there should be a way to do it and there isn&amp;#39;t.&amp;nbsp;ORM&amp;#39;s Rmap algorithm stipulates that in relational-mapping a 1:1 fact type like yours with mandatory constraints either on both roles or on neither roles (as in your case), the user needs a way to input his / her preference as to which table that 1:1 should be mapped to. Unfortunately, as far as I know no such facility for user input has been incorporated into NORMA&amp;#39;s Rmapping&amp;nbsp;as yet. So it&amp;#39;s not so much a bug, as an interaction-feature that&amp;#39;s yet to be added in. As for when it will be added, perhaps Matt or Terry could comment on that.&lt;/p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;

I Still think it is a bug because it do not generate the same output on the same input, like any function will do. 
But if the algorithm do allow different output then maybe it is not a bug. 

Thank you for confirming it anyway, so i don&amp;#39;t fool around and searching for a solution then there is none.</description></item><item><title>Re: Relational View with 0..1 to a 0..1</title><link>http://www.ormfoundation.org/forums/thread/2960.aspx</link><pubDate>Tue, 28 Feb 2012 09:33:41 GMT</pubDate><guid isPermaLink="false">9d039735-a311-4a8d-9c49-a0bb2572af9e:2960</guid><dc:creator>Ken Evans</dc:creator><slash:comments>0</slash:comments><comments>http://www.ormfoundation.org/forums/thread/2960.aspx</comments><wfw:commentRss>http://www.ormfoundation.org/forums/commentrss.aspx?SectionID=30&amp;PostID=2960</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;Looopy:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;. the thing i am try to accomplish is that both a employee and customer can share the same login and its not mandatory that they should be able to login and its not mandatory for a person to do a login either.

&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Please refer to my example.&lt;br /&gt;If you:&lt;br /&gt;1: remove the mandatory requirement in the fact type &amp;quot;Person has WebLogin&amp;quot;&lt;br /&gt;2: remove the exclusion constraint between the employee and customer subtypes &lt;br /&gt;&lt;br /&gt;Then:&lt;/p&gt;&lt;p&gt; * an employee and a customer can share the same login (i.e. one person can be both a customer and an employee)&lt;br /&gt;* it is not mandatory that a person has a login &lt;br /&gt;* it is not mandatory for a customer or employee to login (since both subtypes share the non-mandatory nature of the &amp;quot;Person has WebLogin&amp;quot; fact type.)&lt;/p&gt;&lt;p&gt;And&lt;/p&gt;&lt;p&gt;If you want to add &amp;quot;contacts&amp;quot; that are neither customers nor employees &lt;br /&gt;Then then you could add a unary &amp;quot;Person is contact&amp;quot; &lt;br /&gt;or add &amp;quot;Contact&amp;quot; as a new subtype of person and then add a fact type about &amp;quot;Contact&amp;quot; that is not true of Customer or Employee.&lt;/p&gt;&lt;p&gt;Ken &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Relational View with 0..1 to a 0..1</title><link>http://www.ormfoundation.org/forums/thread/2959.aspx</link><pubDate>Tue, 28 Feb 2012 02:26:36 GMT</pubDate><guid isPermaLink="false">9d039735-a311-4a8d-9c49-a0bb2572af9e:2959</guid><dc:creator>Andy Carver</dc:creator><slash:comments>0</slash:comments><comments>http://www.ormfoundation.org/forums/thread/2959.aspx</comments><wfw:commentRss>http://www.ormfoundation.org/forums/commentrss.aspx?SectionID=30&amp;PostID=2959</wfw:commentRss><description>&lt;p&gt;Hi, Yes you are correct, there should be a way to do it and there isn&amp;#39;t.&amp;nbsp;ORM&amp;#39;s Rmap algorithm stipulates that in relational-mapping a 1:1 fact type like yours with mandatory constraints either on both roles or on neither roles (as in your case), the user needs a way to input his / her preference as to which table that 1:1 should be mapped to. Unfortunately, as far as I know no such facility for user input has been incorporated into NORMA&amp;#39;s Rmapping&amp;nbsp;as yet. So it&amp;#39;s not so much a bug, as an interaction-feature that&amp;#39;s yet to be added in. As for when it will be added, perhaps Matt or Terry could comment on that.&lt;/p&gt;</description></item><item><title>Re: Relational View with 0..1 to a 0..1</title><link>http://www.ormfoundation.org/forums/thread/2958.aspx</link><pubDate>Mon, 27 Feb 2012 22:18:58 GMT</pubDate><guid isPermaLink="false">9d039735-a311-4a8d-9c49-a0bb2572af9e:2958</guid><dc:creator>Looopy</dc:creator><slash:comments>0</slash:comments><comments>http://www.ormfoundation.org/forums/thread/2958.aspx</comments><wfw:commentRss>http://www.ormfoundation.org/forums/commentrss.aspx?SectionID=30&amp;PostID=2958</wfw:commentRss><description>Hi Again,

Thanks for the tips Ken about the book.

But still i think i will get in a situation that i don&amp;#39;t agree on how norma generates the DDL SQL. Like now then it got the foreign keys on weblogin but i could fool the tool by adding and removing the mandatory flag and resave the model and then i get the foreign keys at customer and employee. And the next time i do any change on the model by adding a new entity i need to do the same procedure to make it create them there i wish them to be.

So i still thinks it is a bug, don&amp;#39;t You agree? Either there should be a way to do it or it should not.</description></item><item><title>Re: Relational View with 0..1 to a 0..1</title><link>http://www.ormfoundation.org/forums/thread/2957.aspx</link><pubDate>Mon, 27 Feb 2012 10:27:30 GMT</pubDate><guid isPermaLink="false">9d039735-a311-4a8d-9c49-a0bb2572af9e:2957</guid><dc:creator>Ken Evans</dc:creator><slash:comments>0</slash:comments><comments>http://www.ormfoundation.org/forums/thread/2957.aspx</comments><wfw:commentRss>http://www.ormfoundation.org/forums/commentrss.aspx?SectionID=30&amp;PostID=2957</wfw:commentRss><description>&lt;p&gt;If you want to learn ORM, then I recommend that you get Terry&amp;#39;s book &amp;quot;Information Modeling and Relational Databases Second Edition&amp;quot;. It has lots of examples and exercises so you can use it as a reference and also go through the exercises. &lt;/p&gt;&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;Looopy:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;what if i wish to insert a person in my model that should not be able to login and is not a cusomer of a employee say for example a contact then this model fails.&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;Regarding my example, it is not quite correct to say that &amp;quot;it is the model that fails&amp;quot;.&amp;nbsp; A model is just as you define it to meet your requirements.&lt;br /&gt;With ORM you need to be very clear about what you want and then express that in terms of atomic facts. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;For example, if you want to have a Person in your database that cannot login, then one solution is to insert an additional subtype between Person and the Customer and Employee Semantic object types (you might call it WebsiteUser) - then change the Person(.id) has WebLogin(.code) to be something like WebsiteUser(.nr) has WebLogin(.code).&lt;/p&gt;&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;Looopy:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;the thing i am try to accomplish is that both a employee and customer can share the same login and its not mandatory that they should be able to login and its not mandatory for a person to do a login either.

So the main problem is that i wish to model it right but i do not succeed defining it in NORMA.&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br /&gt;&lt;br /&gt;You should find it easier if you break down complex statements like this into a set of atomic facts and then model those.&lt;/p&gt;&lt;p&gt;Ken &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Relational View with 0..1 to a 0..1</title><link>http://www.ormfoundation.org/forums/thread/2956.aspx</link><pubDate>Sun, 26 Feb 2012 23:23:42 GMT</pubDate><guid isPermaLink="false">9d039735-a311-4a8d-9c49-a0bb2572af9e:2956</guid><dc:creator>Looopy</dc:creator><slash:comments>0</slash:comments><comments>http://www.ormfoundation.org/forums/thread/2956.aspx</comments><wfw:commentRss>http://www.ormfoundation.org/forums/commentrss.aspx?SectionID=30&amp;PostID=2956</wfw:commentRss><description>Hi Ken,

&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;Ken Evans:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;&amp;nbsp;Looopy,&lt;/p&gt;&lt;p&gt;Maybe I&amp;#39;m wrong, but I get the impression that you have some notion of what the relational model &amp;quot;should&amp;quot; look like and then you are trying to work back from that to define an object-role model that fits what you think &amp;quot;should&amp;quot; be the case.&lt;br /&gt;&lt;/p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;
No i tried the correct approach do the model first without thinking of the database but i don&amp;#39;t know really have to model it in a ORM tool - i am a beginner in this field.

&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;Ken Evans:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;
For example you might want to say that a person has a first name and last name and a weblogin. 
Then you might say that a person can be an employee or a customer but not both.
Then you might want to say things that only apply to &amp;quot;customer&amp;quot; or that only apply to &amp;quot;employee.&amp;quot;
&lt;/p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;
The example you made states that a person is able to login (weblogin) but what if i wish to insert a person in my model that should not be able to login and is not a cusomer of a employee say for example a contact then this model fails. the thing i am try to accomplish is that both a employee and customer can share the same login and its not mandatory that they should be able to login and its not mandatory for a person to do a login either.

So the main problem is that i wish to model it right but i do not succeed defining it in NORMA.</description></item><item><title>Re: Relational View with 0..1 to a 0..1</title><link>http://www.ormfoundation.org/forums/thread/2955.aspx</link><pubDate>Sun, 26 Feb 2012 17:19:34 GMT</pubDate><guid isPermaLink="false">9d039735-a311-4a8d-9c49-a0bb2572af9e:2955</guid><dc:creator>Ken Evans</dc:creator><slash:comments>0</slash:comments><comments>http://www.ormfoundation.org/forums/thread/2955.aspx</comments><wfw:commentRss>http://www.ormfoundation.org/forums/commentrss.aspx?SectionID=30&amp;PostID=2955</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Looopy,&lt;/p&gt;&lt;p&gt;Maybe I&amp;#39;m wrong, but I get the impression that you have some notion of what the relational model &amp;quot;should&amp;quot; look like and then you are trying to work back from that to define an object-role model that fits what you think &amp;quot;should&amp;quot; be the case.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;The recommended procedure is to begin by defining what you want to say (in an object-role model) and only then should you look at what kind of relational model this generates.&lt;/p&gt;&lt;p&gt;For example you might want to say that a person has a first name and last name and a weblogin. &lt;br /&gt;Then you might say that a person can be an employee or a customer but not both.&lt;br /&gt;Then you might want to say things that only apply to &amp;quot;customer&amp;quot; or that only apply to &amp;quot;employee.&amp;quot;&lt;/p&gt;&lt;p&gt;The following diagram shows an example of this approach.&lt;br /&gt;In summary, you start by &amp;quot;getting the facts&amp;quot; and only then do you generate DDL or other artefacts.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Ken&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Relational View with 0..1 to a 0..1</title><link>http://www.ormfoundation.org/forums/thread/2954.aspx</link><pubDate>Sun, 26 Feb 2012 12:55:31 GMT</pubDate><guid isPermaLink="false">9d039735-a311-4a8d-9c49-a0bb2572af9e:2954</guid><dc:creator>Looopy</dc:creator><slash:comments>0</slash:comments><comments>http://www.ormfoundation.org/forums/thread/2954.aspx</comments><wfw:commentRss>http://www.ormfoundation.org/forums/commentrss.aspx?SectionID=30&amp;PostID=2954</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;Clifford Heath:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;
&lt;p&gt;
Do you intend that an Employee who is also a Customer can have two WebLogins? You do know that there is no implicit exclusion between two subtypes as in some O-O languages? You can add an exclusion constraint if necessary.
&lt;/p&gt;
&lt;/div&gt;&lt;/BLOCKQUOTE&gt;

No they should be using the same weblogin but its not mandatory that they are able to login, that is the connection &amp;quot;has access to&amp;quot; should fix.

&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;Clifford Heath:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;
&lt;p&gt;If a Person can be both a Customer and an Employee but can only have one WebLogin, the WebLogin should be associated with the Person class, or a subtype (WebUser?) which is a supertype of both Employee and Customer, or should have an exclusion, or some other arrangement that enforces that.
&lt;/p&gt;
&lt;/div&gt;&lt;/BLOCKQUOTE&gt;

But if i do it like this then both an employee and a customer can login, i would like to have them register then they wish to login, either if its an employee or  a customer.
Can you give me an example on how i can accomplish this?</description></item><item><title>Re: Relational View with 0..1 to a 0..1</title><link>http://www.ormfoundation.org/forums/thread/2953.aspx</link><pubDate>Sun, 26 Feb 2012 05:11:42 GMT</pubDate><guid isPermaLink="false">9d039735-a311-4a8d-9c49-a0bb2572af9e:2953</guid><dc:creator>Clifford Heath</dc:creator><slash:comments>0</slash:comments><comments>http://www.ormfoundation.org/forums/thread/2953.aspx</comments><wfw:commentRss>http://www.ormfoundation.org/forums/commentrss.aspx?SectionID=30&amp;PostID=2953</wfw:commentRss><description>&lt;p&gt; A subtype cannot be independent (of its supertype). Try making the supertype independent first (not sure that&amp;#39;ll work though, it depends on the interpretation NORMA applies).
&lt;/p&gt;

&lt;p&gt;
Do you intend that an Employee who is also a Customer can have two WebLogins? You do know that there is no implicit exclusion between two subtypes as in some O-O languages? You can add an exclusion constraint if necessary.
&lt;/p&gt;

&lt;p&gt;If a Person can be both a Customer and an Employee but can only have one WebLogin, the WebLogin should be associated with the Person class, or a subtype (WebUser?) which is a supertype of both Employee and Customer, or should have an exclusion, or some other arrangement that enforces that.
&lt;/p&gt;

&lt;p&gt;
Finally you might find that there are &amp;quot;absorption&amp;quot; options available which you can use to steer this.
&lt;/p&gt;</description></item><item><title>Re: Relational View with 0..1 to a 0..1</title><link>http://www.ormfoundation.org/forums/thread/2952.aspx</link><pubDate>Sun, 26 Feb 2012 01:21:33 GMT</pubDate><guid isPermaLink="false">9d039735-a311-4a8d-9c49-a0bb2572af9e:2952</guid><dc:creator>Looopy</dc:creator><slash:comments>0</slash:comments><comments>http://www.ormfoundation.org/forums/thread/2952.aspx</comments><wfw:commentRss>http://www.ormfoundation.org/forums/commentrss.aspx?SectionID=30&amp;PostID=2952</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;Clifford Heath:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Nothing in your model requires the FK to be in a particular direction. Just a thought; try setting Customer &amp;quot;Independent&amp;quot; in the Property pane. I think that will skew the absorption to decide that Customer is a table (while it&amp;#39;s still making up its mind about a WebLogin). However, surely the WebLogin role on your one-to-one is mandatory? Otherwise you can have a WebLogin that logs-in no Customer?&lt;/div&gt;&lt;/BLOCKQUOTE&gt;

The &amp;quot;Indipendent&amp;quot; was not an option it was grayed out so i could not select it. So that was nothing i could set. 
I have added a new more detailed description on my problem in my previous post.

Thanks for the help!</description></item><item><title>Re: Relational View with 0..1 to a 0..1</title><link>http://www.ormfoundation.org/forums/thread/2951.aspx</link><pubDate>Sun, 26 Feb 2012 01:19:25 GMT</pubDate><guid isPermaLink="false">9d039735-a311-4a8d-9c49-a0bb2572af9e:2951</guid><dc:creator>Looopy</dc:creator><slash:comments>0</slash:comments><comments>http://www.ormfoundation.org/forums/thread/2951.aspx</comments><wfw:commentRss>http://www.ormfoundation.org/forums/commentrss.aspx?SectionID=30&amp;PostID=2951</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;Ken Evans:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;Thanks for your question, however, as I&amp;#39;m sure that you know, the orm diagram you posted is not the same as that which is reflected in the relational view.&lt;br /&gt;The orm diagram that you posted just gives a single table.&lt;br /&gt;So it would be helpful if you posted both the object-role model and the relational view of that model and then pointed out the problems you are having with that particular model.&lt;/p&gt;&lt;p&gt;If you change an object-role model, the change will be immediately reflected in the relational view of the model. In turn, this will be reflected in the DDL.&lt;br /&gt;So a change in the relational view is not &amp;quot;random&amp;quot; - it is just a relational representation of the object-role model. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;It would also be helpful if you explain what you mean by &amp;quot;correct&amp;quot; DDL?&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Ken &lt;br /&gt;&lt;/p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;

I have attached the new more detailed view of my model and try to exploain in more detail what my problem is in the image.</description></item><item><title>Re: Relational View with 0..1 to a 0..1</title><link>http://www.ormfoundation.org/forums/thread/2949.aspx</link><pubDate>Sun, 26 Feb 2012 00:35:54 GMT</pubDate><guid isPermaLink="false">9d039735-a311-4a8d-9c49-a0bb2572af9e:2949</guid><dc:creator>Looopy</dc:creator><slash:comments>0</slash:comments><comments>http://www.ormfoundation.org/forums/thread/2949.aspx</comments><wfw:commentRss>http://www.ormfoundation.org/forums/commentrss.aspx?SectionID=30&amp;PostID=2949</wfw:commentRss><description>I have a Employee that can have a WebLogin, those weblogin should not be connected to a Customer if they are not the same.

But i will try to set it as &amp;quot;Independent&amp;quot; and se what happens.

Thanks for the tip!</description></item><item><title>Re: Relational View with 0..1 to a 0..1</title><link>http://www.ormfoundation.org/forums/thread/2950.aspx</link><pubDate>Sun, 26 Feb 2012 00:35:54 GMT</pubDate><guid isPermaLink="false">9d039735-a311-4a8d-9c49-a0bb2572af9e:2950</guid><dc:creator>Looopy</dc:creator><slash:comments>0</slash:comments><comments>http://www.ormfoundation.org/forums/thread/2950.aspx</comments><wfw:commentRss>http://www.ormfoundation.org/forums/commentrss.aspx?SectionID=30&amp;PostID=2950</wfw:commentRss><description>I have a Employee that can have a WebLogin, those weblogin should not be connected to a Customer if they are not the same.

But i will try to set it as &amp;quot;Independent&amp;quot; and se what happens.

Thanks for the tip!</description></item></channel></rss>