Mapping tables to objects

Using existing relational data with objects at the application level requires mapping tables to objects. This figure illustrates such a mapping. Details for mapping tables to objects involve:

Mapping tables to objects
bulletMapping relational data types into object types. In most cases this is straightforward mapping.
bulletMapping relational table definitions to object classes. The table definitions map directly except for foreign keys. Those are replaced by relationships.
bulletMapping inheritance based on a table or multiple tables. There may be type codes in a given table used to identify types of entities, such as types of clothing or types of employees. Those types can be turned into an inheritance structure at the object application level. Similarly, there may be separate tables for different types of entities. Again, this can be turned into an inheritance structure.
bulletMapping tuple retrieval, keys and relational joins to relationships for object navigation. Object navigation replaces successive searches based on keys. 
bulletMapping "intersection tables" to object relationships. An example of an intersection table is the "Size Color" table used in the examples. This table exists because the relational model does not support many-to-many relationships. The relationship between "Size" and "Color Swatch" is a many-to-many relationship because a given size can have many color swatches and a color swatch can apply to many sizes.

 See mapping objects to tables. Also see using existing relational schema to define objects (new window).

 

Web Services and Service-Oriented Architectures
Online articles>
Consulting
Mentoring
Speaking
Suggested programs
Stencils for the Savvy Manager's Guide
Links
Mail list
Privacy policy
Sitemap
Contact
Web Services articles
XML standards and vocabularies
Application server articles
Database concepts and standards
Object database articles>
Relational database articles
Object-relational mapping articles
XML database articles
XML middleware articles
Article Sponsorship
Reprint policy
Object-oriented database management system (OODBMS) definition
When an object database should be used>
ODBMS FAQ
Caching for object database management systems
Architectures that use object database products
Everyday uses of object databases
ODBMS myths
Object database problems?
Article suggestions
Business need
High performance>
Complex data
One model to reduce development and maintenance costs
Traversal optimization
No impedance mismatch>
Impedance mismatch
Mapping>
Mapping objects to tables
Mapping tables to objects>

Related recent articles from Google News


Easily manipulate data with LINQ
Builder AU, Australia - 20 hours ago
NET: This includes three variations: LINQ to SQL (working with relational data, with only SQL Server supported) provides an object relational mapping ...

DevExpress Announces the Newest Version of Its .NET Business ...
Market Wire (press release) - Apr 29, 2008
To learn more about DevExpress business application framework and object-relational mapping tools for .NET, and to download a fully functional evaluation ...

Data-Focused Visual Studio 2008 and .NET 3.5 SP1 Betas Released
Redmondmag.com, CA - May 12, 2008
The object relational mapping framework, based on the Entity Data Model, is still a work in progress. Some problems will not be addressed in EF version 1 ...

Cincom Smalltalk Releases ObjectStudio 8.1 and VisualWorks 7.6
Market Wire (press release) - Apr 28, 2008
... Cincom VisualWorks 7.6 also supports Microsoft Vista, OSX Leopard and MySQL, and includes a supported object-relational mapping framework (GLORP).

More related news: "object-relational mapping" - Google News

Related books at Amazon.com


Pro LINQ Object Relational Mapping in C# 2008 (Pro)
by Vijay P. Mehta
Publisher: Apress
Publication Date: June 2008

C++ Database Development: Featuring Parody the Persistent Almost-Relational Object Database Management System
by Al Stevens
Average Customer Review: 4 stars based on 1 review.
Customer Review: Al Stevens, C++ Database Development (MIS Press, 1992) Two questions come to mind as to why anyone would be reading a ten-year-old book on database development in an outdated edition written to cater to an operating system that (almost) no longer exists in any meaningful way. (Or why they would be reading a review of such a book.) Tho...

Foundation for Object / Relational Databases: The Third Manifesto
by C. J. Date, Hugh Darwen
Average Customer Review: 3 stars based on 4 reviews.
Customer Review: Mr. Data and Mr. Darwen have much to say in this book. The question is will community of "database" people read it, assimilate it, and get to sufficient mass to discuss the merits of the concepts described in this book? And, if that does happen, will it be too late to implement any of the concepts in a real DBMS? There is no question...

Multimedia Databases: An Object-Relational Approach
by Lynne Dunckley
Publisher: Pearson Education
Publication Date: January 2003

Database Directions: From Relational to Distributed, Multimedia and Object-Oriented Database Systems
by James Larson
Average Customer Review: 3 stars based on 1 review.
Customer Review: This book should be renamed as Database Pocket Guide.Good for College students ,who just want to refer to refresh themselves.Good for Database Users whojust want to know little details about Distributed Databases.But for people who are really serious about Distributed Databases, this is not the right choice. A Good one could be "Manag...

More related books: Search Amazon.com for object relational mapping

 

Copyright © 2000-2008 Barry & Associates, Inc. All Rights Reserved.
You can use this material for your work or classes. Click here for our reprint policy.
www.service-architecture.com

 

 Information on becoming a sponsor

 

 

Google

 

Barry & Associates, Inc.