<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>TreeCube &#187; UML</title>
	<atom:link href="http://blog.treecube.com/category/modeling/uml/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.treecube.com</link>
	<description>On multidimensional database</description>
	<pubDate>Tue, 04 Nov 2008 22:57:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>n-ary associations in UML</title>
		<link>http://blog.treecube.com/2008/07/22/n-ary-associations-in-uml/</link>
		<comments>http://blog.treecube.com/2008/07/22/n-ary-associations-in-uml/#comments</comments>
		<pubDate>Tue, 22 Jul 2008 16:19:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Database]]></category>

		<category><![CDATA[Modeling]]></category>

		<category><![CDATA[UML]]></category>

		<category><![CDATA[association]]></category>

		<category><![CDATA[modelization]]></category>

		<guid isPermaLink="false">http://blog.treecube.com/?p=34</guid>
		<description><![CDATA[I just found that it is possible to modelize n-ary association in UML. I use uml all the time and never saw a class diagram with a n-ary association, but a couple of weeks ago, in a meeting, we were discussing a conceptual model representing a database schema and we were wondering if it was [...]]]></description>
			<content:encoded><![CDATA[<p>I just found that it is possible to modelize n-ary association in UML. I use uml all the time and never saw a class diagram with a n-ary association, but a couple of weeks ago, in a meeting, we were discussing a conceptual model representing a database schema and we were wondering if it was possible to model that in UML. So, yes, it is possible.</p>
<p>I didn&#8217;t found the reference in the uml specification, but I did found it in the book &#8220;The Unified Modeling Language Reference Manual, second edition&#8221; by James Rumbaugh, Ivar Jacobson and Grady Booch.</p>
<div id="attachment_37" class="wp-caption aligncenter" style="width: 310px"><a href="http://blog.treecube.com/wp-content/uploads/2008/07/image11.png"><img class="size-medium wp-image-37 center" title="Ternary association in UML" src="http://blog.treecube.com/wp-content/uploads/2008/07/image11-300x159.png" alt="" width="300" height="159" /></a><p class="wp-caption-text">Ternary association in UML</p></div>
<p><strong>Definition</strong>: <em>An association among three or more classes</em>.</p>
<p><strong>Semantics</strong>: <em>Each instance of the association is an n-tuple of values, one from each of the respective classes. A single class may appear in more that one position in the association, but the values in the different positions are independent and need not be the same object.</em></p>
<p>About the <strong>multiplicity</strong>, the authors say the following: &#8220;<em>the multiplicity is defined with respect to the other n-1 ends. For example, given a ternary association among classes (A,B,C), the multiplicity of the C end states how many C objects may appear in association with a particular pair of A and B objects.</em>&#8221;</p>
<p>I guess it would be hard to enforce something like that in java or c++, but in the context of a database, that kind of constraits is easy to enforce with referential integrity, uniqueness and constraint (like oracle constraint). Maybe it is why n-ary associations are not widely used&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.treecube.com/2008/07/22/n-ary-associations-in-uml/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.244 seconds -->
