Skip to Content
EJB™ 2.1 Kick Start
book

EJB™ 2.1 Kick Start

by Peter Thaggard
November 2002
Intermediate to advanced content levelIntermediate to advanced
400 pages
8h 14m
English
Sams
Content preview from EJB™ 2.1 Kick Start

Chapter 7. Entity Beans

An Entity Bean is an abstraction representing a state-laden class whose instances are stored in a persistence mechanism such as a relational database. Generally speaking, if a class’s state (that is, its attributes) is more important than its behavior (that is, its methods), then the class is amenable to being implemented as an Entity Bean. BookEaz’s system contained several Entity Beans, including Book, ShoppingCart, ShoppingItem, Order, and LineItem. These abstractions from BookEaz’s business domain all pass the “state is more important than behavior” litmus test.

Every instance of an Entity Bean has a unique identity that ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Sams Teach Yourself J2EE™ in 21 Days, Second Edition

Sams Teach Yourself J2EE™ in 21 Days, Second Edition

Martin Bond, Dan Haywood, Debbie Law, Andy Longshaw, Peter Roxburgh
What Employees Want Most in Uncertain Times

What Employees Want Most in Uncertain Times

Kristine W. Powers, Jessica B.B. Diaz
EJB 2.0 Development with WebSphere Studio Application Developer

EJB 2.0 Development with WebSphere Studio Application Developer

Ueli Wahli, Wouter Denayer, Lars Schunk, Deborah Shaddon, Martin Weiss

Publisher Resources

ISBN: 0672321785Purchase book