Chapter 9 Working with Object-Oriented Models


Primary key class attributes

All primary key class attributes must be declared as public. In addition, each primary key class attribute must have a corresponding cmp-field in the Bean class.

Manual correction Automatic correction
Change the visibility to public, and create a cmp-field in the Bean class that has the same name and the same data type as the attribute of the primary key class Changes the visibility to public and creates a cmp-field in the Bean class that has the same name and the same data type as the attribute of the primary key class

 


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