Skip to main content
  • 808 Accesses

Abstract

In this chapter, I will go through the basics of object-relational mapping (ORM), which is basically mapping entities to tables and attributes to columns. I will then concentrate on more complex mappings such as relationships, composition, and inheritance. A domain model is made of objects interacting with each other. Objects and databases have different ways to store relationship information (through pointers or foreign keys). Inheritance is not a feature that relational databases naturally have, and therefore the mapping is not as obvious. I will go into some detail and show examples that will demonstrate how attributes, relationships, and inheritance are mapped from a domain model to a database.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 49.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2010 Antonio Goncalves

About this chapter

Cite this chapter

Goncalves, A. (2010). Object-Relational Mapping. In: Beginning Java™ EE 6 Platform with GlassFish™ 3. Apress. https://doi.org/10.1007/978-1-4302-2890-5_3

Download citation

Publish with us

Policies and ethics