About Entity Managers

See Also

A Java Persistence API entity manager handles how entities within a are found, created, and removed.

Entities within a persistence context are associated with an entity manager instance. The entity manager instance controls how the entities in a persistence context are managed. You can use an entity manager instance to handle locating the entities in a persistence context.

Types of Entity Managers

Entity managers can be container-managed or application-managed. The type of entity manager you can use in your application depends upon the container and how transactions are carried out. You specify how transactions are carried out in the persistence unit.

For more on entity managers, see the Java EE 5 Tutorial:

See Also
Working with Enterprise Applications
Obtaining an Entity Manager
About Persistence Units
About Java Persistence

Legal Notices