Entity Bean in EJB 3.x

Entity Bean in EJB 3.x Tutorial for beginners and professionals. there are 2 types of entity beans: bean managed persistence, container managed persistence Java Persistence API.

Entity Bean in EJB 3.x

Entity Bean in EJB 3.x

An entity bean represents the persistent data stored in the database. It is a server-side component.

In EJB 2.x, there were two types of entity beans: bean-managed persistence (BMP) and container-managed persistence (CMP).

Since EJB 3.x, it is deprecated and replaced by JPA (Java Persistence API) that is covered in the hibernate tutorial.

In the hibernate tutorial, there are given hibernate with annotation examples where we are using JPA annotations. The JPA with Hibernate is widely used today.