• Persistence Context: a context containing a set of domain objects/entities in which for every persistent entity there is a unique entity instance.
  • Entity Manager: as the name clearly states, such an object will manage entities, will take care of creation, update, querying, deletion. Entity Manager classes must extend javax.persistence.EntityManager, and instances are associated with a persistence context by annotating them with @PersistenceContext. Usually, these instances’ life cycles are bound to the transaction in which the method is being executed, so they are managed by the container (in our case, the Spring container).
  • Entity Manager Factory: again, the naming is very relevant for the purpose of such an object. Entity Manager Factory beans ...

Get Pivotal Certified Professional Spring Developer Exam: A Study Guide 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.