Object-relationship modeling

Object-relationship modelling is a technique for designing or describing relational databases.

See also Object-relational mapping.

In ORM and related technologies each database table can be thought of as an object. It should be named singularly because a collection of rows of the database can be considered a collection. Consider this: each table will have one or more parent tables and likewise each table can have one or more child tables; that is to say the arrangement is very similar to a set of spokes protruding from the center. Each column in each parent table should be considered to be a property of the object table. This typically would be a read only property, but it is possible to have it also be read and write. The effects would cascade into any other table that was a child of the parent table - in other words, all sibling tables. Each child table can be considered a collection of one or more things.

Let's take an example. Assume that we have three tables. One, the object table, is the center item. It is a people table. It contains singular information about a person in its rows. Each row would be about one and only one person and the columns could be things such as Surname, GivenName, NationalIdentity, Username, Password and so forth. Each of these would be mapped as a property.

Another table, the company table, is closely related and is parent to the person table. Assuming that a person may only work for one company at a given time it could be expressed that the company "owns" the person. Each column in the company table would become a property of the object table. To avoid name collisions it is common to prepend the table name to the property name when the object is created, i.e. Person.CompanyCity, Person.CompanyDomain so on and so forth.

Let's add to this the prospect of a child table. Ignoring the fact that it is possible for more than one person to live at a given address and that one person can have more than one address let us assume that an address has just one person living there, and that each person can have multiple addresses. So, you see that the multiple addresses becomes a collection of addresses for each person. Thus; Person.Address[0].StreetName, Person.Address[0].City.

Sometimes we get another type of relationship between tables which is a joining table. If a table is a mapper between two static objects, i.e. person(s) to address(es) and alternatively address(es) to person(s), then the relationship can be expressed as Person.Address[0].StreetName or a shorter notation could be devised Person.AddressStreetName.

Many programming languages have ORM packages. Here are some of the better known ones:

  • Java
    • Hibernate
    • JGrinder
  • .Net
    • Gentle.net

  • Art and Cultures
    • Art (https://academickids.com/encyclopedia/index.php/Art)
    • Architecture (https://academickids.com/encyclopedia/index.php/Architecture)
    • Cultures (https://www.academickids.com/encyclopedia/index.php/Cultures)
    • Music (https://www.academickids.com/encyclopedia/index.php/Music)
    • Musical Instruments (http://academickids.com/encyclopedia/index.php/List_of_musical_instruments)
  • Biographies (http://www.academickids.com/encyclopedia/index.php/Biographies)
  • Clipart (http://www.academickids.com/encyclopedia/index.php/Clipart)
  • Geography (http://www.academickids.com/encyclopedia/index.php/Geography)
    • Countries of the World (http://www.academickids.com/encyclopedia/index.php/Countries)
    • Maps (http://www.academickids.com/encyclopedia/index.php/Maps)
    • Flags (http://www.academickids.com/encyclopedia/index.php/Flags)
    • Continents (http://www.academickids.com/encyclopedia/index.php/Continents)
  • History (http://www.academickids.com/encyclopedia/index.php/History)
    • Ancient Civilizations (http://www.academickids.com/encyclopedia/index.php/Ancient_Civilizations)
    • Industrial Revolution (http://www.academickids.com/encyclopedia/index.php/Industrial_Revolution)
    • Middle Ages (http://www.academickids.com/encyclopedia/index.php/Middle_Ages)
    • Prehistory (http://www.academickids.com/encyclopedia/index.php/Prehistory)
    • Renaissance (http://www.academickids.com/encyclopedia/index.php/Renaissance)
    • Timelines (http://www.academickids.com/encyclopedia/index.php/Timelines)
    • United States (http://www.academickids.com/encyclopedia/index.php/United_States)
    • Wars (http://www.academickids.com/encyclopedia/index.php/Wars)
    • World History (http://www.academickids.com/encyclopedia/index.php/History_of_the_world)
  • Human Body (http://www.academickids.com/encyclopedia/index.php/Human_Body)
  • Mathematics (http://www.academickids.com/encyclopedia/index.php/Mathematics)
  • Reference (http://www.academickids.com/encyclopedia/index.php/Reference)
  • Science (http://www.academickids.com/encyclopedia/index.php/Science)
    • Animals (http://www.academickids.com/encyclopedia/index.php/Animals)
    • Aviation (http://www.academickids.com/encyclopedia/index.php/Aviation)
    • Dinosaurs (http://www.academickids.com/encyclopedia/index.php/Dinosaurs)
    • Earth (http://www.academickids.com/encyclopedia/index.php/Earth)
    • Inventions (http://www.academickids.com/encyclopedia/index.php/Inventions)
    • Physical Science (http://www.academickids.com/encyclopedia/index.php/Physical_Science)
    • Plants (http://www.academickids.com/encyclopedia/index.php/Plants)
    • Scientists (http://www.academickids.com/encyclopedia/index.php/Scientists)
  • Social Studies (http://www.academickids.com/encyclopedia/index.php/Social_Studies)
    • Anthropology (http://www.academickids.com/encyclopedia/index.php/Anthropology)
    • Economics (http://www.academickids.com/encyclopedia/index.php/Economics)
    • Government (http://www.academickids.com/encyclopedia/index.php/Government)
    • Religion (http://www.academickids.com/encyclopedia/index.php/Religion)
    • Holidays (http://www.academickids.com/encyclopedia/index.php/Holidays)
  • Space and Astronomy
    • Solar System (http://www.academickids.com/encyclopedia/index.php/Solar_System)
    • Planets (http://www.academickids.com/encyclopedia/index.php/Planets)
  • Sports (http://www.academickids.com/encyclopedia/index.php/Sports)
  • Timelines (http://www.academickids.com/encyclopedia/index.php/Timelines)
  • Weather (http://www.academickids.com/encyclopedia/index.php/Weather)
  • US States (http://www.academickids.com/encyclopedia/index.php/US_States)


  • Home Page (http://academickids.com/encyclopedia/index.php)
  • Contact Us (http://www.academickids.com/encyclopedia/index.php/Contactus)

  • Clip Art (http://classroomclipart.com)
Personal tools