Skip Headers

# Descriptors and EJB

Previous

Next

You can use descriptors to describe the characteristics of entity beans with container-managed or bean-managed persistence.

When mapping enterprise beans, you create a descriptor for the bean class: you do not create a descriptor for the local interface, remote interface, home class, or primary key class.

When using TopLink Workbench, you must define the project with the correct entity bean type (such as entity beans with container-managed or bean-managed persistence) and import the `ejb-jar.xml` file for the beans into the TopLink Workbench project.

For CMP projects, you use the `ejb-jar.xml` file to define the bean's mapped attributes. A descriptor of a bean with container-managed persistence contains a CMP policy used to configure CMP-specific options.

Note: For EJB 3.0 projects, you can use annotations to define the bean's mapped attributes.

This section describes the following:

- Nondeferred Changes

- Creating a New Entity Bean and ejbCreate / ejbPostCreate Methods

- Inheritance