Chapter 9 Working with Object-Oriented Models


Bean class definition

The Bean class must be defined as public. It must define a public constructor that takes no arguments and cannot define the finalize() method. It must be abstract for CMP Entity Beans but cannot be abstract or final for BMP Entity, Session and Message-driven Beans.

Manual correction Automatic correction
Change the class visibility to public, define a public constructor with no arguments, do not define the finalize() method Changes the class visibility to public, defines a public constructor with no arguments and removes the finalize() method. Corrects to set final = false, and set abstract = false

 


Copyright (C) 2005. Sybase Inc. All rights reserved.