O'Reilly logo

Sams Teach Yourself J2EE™ in 21 Days by Peter Roxburgh, Andy Longshaw, Debbie Law, Dan Haywood, Martin Bond

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exercises

The job agency case study defines a complete set of Session beans, and Entity beans. All of the Entity beans except the Applicant bean are implemented using CMP; the Applicant bean has been implemented using BMP. The exercise is to implement an Applicant Entity bean to use CMP. The source code and deployment descriptors can be found under day07\exercise, and the directory structure is the same as yesterday.

In more detail, the fields of the Applicant bean need to be converted into either cmp-fields or cmr-fields:

  • login This is the primary key for the Applicant Entity bean and will be a cmp-field.

  • name cmp-field

  • email cmp-field

  • summary cmp-field

  • location cmr-field to the Location bean. There will be a one-to-many relationship between Location ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required