Exercise

The exercise starts with a version of today's case study that has a complete set of Session beans, but an incomplete set of Entity beans. Where there is no Entity bean, the appropriate Session bean performs direct SQL.

Your task is to both implement an Applicant Entity bean and to update the Agency and Register Session beans to use this new Entity bean.

The Applicant bean should map itself to the Applicant and ApplicantSkill tables and define the following fields:

  • login This is the primary key for the Applicant Entity bean.

  • name of type String.

  • email of type String.

  • summary of type String.

  • location Should be a reference to a LocationLocal to ensure referential integrity.

  • skills Should be a collection of SkillLocal references to ensure ...

Get Sams Teach Yourself J2EE™ in 21 Days, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.