What Is an Entity Bean?
An entity bean represents a business object in a persistent storage mechanism. Some examples of business objects are customers, orders, and products. In the J2EE SDK, the persistent storage mechanism is a relational database. Typically, each entity bean has an underlying table in a relational database, and each instance of the bean corresponds to a row in that table. For code examples of entity beans, please refer to these chapters: • Bean-Managed Persistence Examples • Container-Managed Persistence Examples What Makes Entity Beans Different From Session Beans Entity beans differ from session beans in several ways. Entity beans are persistent, allow shared access, have primary keys, and may participate in relationships with other entity beans. Persistence Because the state of an entity bean is saved in a storage mechanism, it is persistent. Persistence means that the entity bean’s state exists beyond the lifetime of the application or the J2EE server process. If you’ve worked with data
An entity bean represents a business object in a persistent storage mechanism. Some examples of business objects are customers, orders, and products. In the J2EE SDK, the persistent storage mechanism is a relational database. Typically, each entity bean has an underlying table in a relational database, and each instance of the bean corresponds to a row in that table. For code examples of entity beans, please refer to chapters 5 and 6. What Makes Entity Beans Different from Session Beans? Entity beans differ from session beans in several ways. Entity beans are persistent, allow shared access, have primary keys, and may participate in relationships with other entity beans. Persistence Because the state of an entity bean is saved in a storage mechanism, it is persistent. Persistence means that the entity bean’s state exists beyond the lifetime of the application or the J2EE server process. If you’ve worked with databases, you’re familiar with persistent data. The data in a database is per
An entity bean represents a business object in a persistent storage mechanism. Some examples of business objects are customers, orders, and products. In the Application Server, the persistent storage mechanism is a relational database. Typically, each entity bean has an underlying table in a relational database, and each instance of the bean corresponds to a row in that table. For code examples of entity beans, please refer to Chapters 26 and 27. What Makes Entity Beans Different from Session Beans? Entity beans differ from session beans in several ways. Entity beans are persistent, allow shared access, have primary keys, and can participate in relationships with other entity beans. Persistence Because the state of an entity bean is saved in a storage mechanism, it is persistent. Persistence means that the entity bean’s state exists beyond the lifetime of the application or the Application Server process. If you’ve worked with databases, you’re familiar with persistent data. The data i