An entity EJB models a real-world business object that persists as a record
in a relational database. Entity beans are persistent, allow shared access,
have primary keys, and may participate in relationships with other entity
beans. All topics listed below discuss development of container-managed
persistence (CMP) entity beans.
Topics Included in This Section
Getting Started
with Entity Beans
Provides an overview of entity beans.
Defining an
Entity Bean
Discusses how to create an entity bean in Workshop for WebLogic,
what an entity bean definition minimally must contain, how to remove
a bean instance, and provides a short introduction to the various
interfaces extended/implemented by an entity bean definition.
Automatic Primary Key Generation
Discusses how to auto-generate primary keys when creating a new entity bean.
Entity Relationships
Discusses how to define an entity relationship between two CMP entity beans.
Query Methods and EJB
QL
Discusses how to use EJB QL in the definition of CMP select and find methods.
Life Cycle of an Entity Bean
Discusses the life cycle of an entity bean.
Tutorial: Building Enterprise JavaBeans
Provides a step-by-step guide to
developing Enterprise JavaBeans.