If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > Table or Type?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-23-05, 06:16
FAC51 FAC51 is offline
Registered User
 
Join Date: Jun 2004
Posts: 127
Table or Type?

Hi im OR mapping and have hit a massive fork in the road, do i either follow CJ Dates idea & equate [object] classes to types (domans), or follow the classes to tables (relations) approach.

To shed some light what im doing, im mapping UML based metamodels into the DBMS, so far if i follow date, i maintain object encapsulation, metamodel semantics etc. The other way (class2table) i can properly apply normalisation etc which is not possible with dates idea.

Any ideas?
Reply With Quote
  #2 (permalink)  
Old 02-23-05, 16:01
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
If your UML models model entities (like Employee, Department, etc.) then they naturally map to tables.

Date's point is that entities like Employee and Department should not really be modelled as "types" in the first place.
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
Reply With Quote
  #3 (permalink)  
Old 02-24-05, 05:53
FAC51 FAC51 is offline
Registered User
 
Join Date: Jun 2004
Posts: 127
Hi Tony,

The metamodel im modeling is a derivetive of the UML-based object model, so im modeling such classes inc: classifier, class, attribute, namespace, element etc - so would these classes be best mapped to tables?

Can i ask in which literature does date states the thing about entities like Employee and Department should not really be modelled as types.
Reply With Quote
  #4 (permalink)  
Old 02-24-05, 06:24
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
Quote:
Originally Posted by FAC51
The metamodel im modeling is a derivetive of the UML-based object model, so im modeling such classes inc: classifier, class, attribute, namespace, element etc - so would these classes be best mapped to tables?
I should think so.

Quote:
Originally Posted by FAC51
Can i ask in which literature does date states the thing about entities like Employee and Department should not really be modelled as types.
That is (I believe) the view of C J Date and Hugh Darwen as expressed in the Third Manifesto and other writings. They would say that a typical "entity" such as an Employee or a Department maps naturally to a table, but not to a data type (class).
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On