© Paul Fisher and Brian D. Murphy 2016

Paul Fisher and Brian D. Murphy, Spring Persistence with Hibernate, 10.1007/978-1-4842-0268-5_5

5. Domain Model Fundamentals

Paul Fisher and Brian D. Murphy2

(1)Brookyln, New York, USA

(2)Maplewood, New Jersey, USA

The domain model is the foundation upon which a persistence tier is constructed. Each domain class defines the properties to be persisted to the database, as well as the relationships between one class and another. This rich object-oriented structure is not easily translated to the relational world of databases. Hibernate provides the required mechanism to help address this impedance mismatch between these two realms.

Mappingis the process through which you provide hints to Hibernate regarding how ...

Get Spring Persistence with Hibernate, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.