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.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsNotes
- 1.
Even though embedded types can be shared or reused, the instances cannot. An embedded object instance belongs to the entity that references it; and no other entity instance, of that entity type or any other, can reference the same embedded instance.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2018 Mike Keith, Merrick Schincariol, Massimo Nardone
About this chapter
Cite this chapter
Keith, M., Schincariol, M., Nardone, M. (2018). Object-Relational Mapping. In: Pro JPA 2 in Java EE 8. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3420-4_4
Download citation
DOI: https://doi.org/10.1007/978-1-4842-3420-4_4
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-3419-8
Online ISBN: 978-1-4842-3420-4
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books