Re: Databasescheme with UML

From: Jon Heggland <jon.heggland_at_idi.ntnu.no>
Date: Wed, 23 May 2007 09:28:10 +0200
Message-ID: <f30qh9$o1p$1_at_orkan.itea.ntnu.no>


Goran Mandinic wrote:
> "Christian Bruckhoff" <brchrist_at_uni-koblenz.de> wrote in message
> news:f2jtm7$iq9$1_at_cache.uni-koblenz.de...
>>
>> How do I create a databasescheme with UML? In comparison to ER-diagrams I
>> would say, that entities are classes and relationships are associations
>> now. I think that should be right. But how you have to model a
>> relationship with attributes with UML?
>
> UML is not used to model relational databases, nor it can precisely
> accomplish that, nor it is invented to do so. In software development UML is
> mainly used in object-oriented systems. If modelling a relational database,
> why use else than E-R?

Because E-R isn't much better than UML? It cannot precisely model a relational database either. ORM is better.

As for representing a relationship with attributes in UML, you could use an association class.

-- 
Jon
Received on Wed May 23 2007 - 09:28:10 CEST

Original text of this message