Spring Persistence Concepts

From NovaOrdis Knowledge Base
Revision as of 20:32, 14 October 2018 by Ovidiu (talk | contribs) (→‎Repository)
Jump to navigation Jump to search

Internal

Overview

DAO

Repository

Any repository implementation needs access to a persistence resource, depending on the persistence technology used. For example, a JDBC-based repository needs access to a JDBC DataSource, while a JPA-based repository needs access to an EntityManager.

@Repository

Object IDs

  • When persisting objects in a relational database, it is generally a good idea to have one field in the object that uniquely identifies the object. See Relational Databases.