Introduction

Entity beans represent business or domain-specific concepts, and are typically the nouns of your system, representing fine-grained concepts such as customers and accounts. They usually represent data (entities) stored in a database. Since they represent data that is persistent in that database, changes to the bean result in changes to the database.

Entity beans allow us to objectify our data, and there are a lot of good reasons why working with objects representing the data, versus doing data access directly, is better. For example, it is a lot easier to work with objects, and they become reusable components in a system. Also, it frees us up from having to worry about developing functionality such as concurrency, transactions, security, ...

Get EJB 2.0 Development with WebSphere Studio Application Developer 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.