New Entity Bean Wizard
See Also
This wizard creates a new EJB 2.1 entity
bean in an EJB module project. You open the wizard by right-clicking the
project node or Enterprise Beans node for any EJB module project and choosing New > Entity Bean.
You set the following information in the wizard:
- EJB Name. Set the name of the bean in the deployment descriptors
and is the basis for the bean's class and interface names.
- Location. Select the source folder where you want to create the bean files.
- Package. Select an existing package or type the name of a new package.
- Primary Key Class. The type of the object that maps to the database
table's primary key.
- Persistence Type. Specify how to manage persistence for your bean:
- Create Interface. Specify which interfaces to create for the bean:
- Remote. Allow your entity bean to be accessed from remote clients
using remote method calls. This usually means clients that are running on a different JVM and not running
on the bean's application server.
- Local. Allow your bean to be accessed from clients that
are running in the same Java virtual machine.
- Generally, your entity beans should not have remote interfaces. It
is better practice to only allow remote access to your entity beans
through a session bean.
- See Also
- About Entity Beans
- Generating CMP Entity Beans from a Database
- Defining a Finder Method
- Defining a Select Method
- Creating an EJB Module Project
- Creating an Enterprise Bean
Legal Notices