Chapter 5. Entity Bean Intro: Entities are Persistent

image with no caption

Entity beans persist. Entity beans exist. Entity beans are. They are object representations of something in an underlying persistent store. (Think: database, because most entity beans represent something from a relational database.) If you have a Customer entity bean, then one bean might represent the entity Tyler Durden, ID #343, while another is the entity Donny Darko, ID #42. Two beans, representing two real entities. An entity bean is simply a realization of something that already exists in a persistent store. Something that already is. And these suckers are hard to kill! As long as the data is in the database, it can keep coming back in the form of an entity bean.

Get Head First EJB 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.