Skip to main content

Object-Relational Mapping

  • Chapter
  • First Online:
Pro JPA 2
  • 835 Accesses

Abstract

The largest part of an API that persists objects to a relational database ends up being the object-relational mapping (ORM) component. The topic of ORM usually includes everything from how the object state is mapped to the database columns to how to issue queries across the objects. We are focusing this chapter primarily on how to define and map entity state to the database, emphasizing the simple manner in which it can be done.

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 EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    Even though embedded types can be shared or reused, the instances cannot. An embedded object instance belongs to the entity that references it; no other entity instance, of that entity type or any other, can reference the same embedded instance.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2013 Mike Keith

About this chapter

Cite this chapter

Keith, M., Schincariol, M. (2013). Object-Relational Mapping. In: Pro JPA 2. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-4927-6_4

Download citation

Publish with us

Policies and ethics