
212 VisualAge for Java Version 3: Persistence Builder with GUIs, Servlets, and JSPs
Composers
Certain situations might arise where one attribute of a class must be mapped
to more than one column of table in a database. To accommodate this
situation, the Persistence Builder supports the notion of a composer.
Consider the Customer example again. Our database table has three columns
for a customer name: title, firstName, and lastName. In its present state, the
Customer class has three attributes: title, firstName, and lastName. Instead
we would like to have only one attribute for a greeting in the Customer class.
To map this greeting to the columns in