Developing the account CMP entity bean
We can add a container-managed persistence entity bean to an EJB project in different ways:
Creating beans with the EJB creation wizard (this is what we will do now).
Importing a bean from an EJB JAR file. Two typical scenarios where we have to import beans are:
- We create a relationship with a CMP 2.0 that was developed in another EJB project. Related entity beans have to be part of the same EJB module. See “Developing relationships” on page 435 for details.
- We derive a bean from a CMP 2.0 that was developed in another EJB project. Parent and child entity beans must be in the same EJB module. See “Developing inheritance structures” on page 447 for details.
Generating the bean with the EJB-to-RDB mapping ...