Chapter 8 O/R Mapping Modeling


Association class transformation

Associations can have association classes.

Regarding O/R Mapping, association class is only meaningful for many-to-many associations. Persistent attributes in the association entity class will be transformed into columns of the middle table.

Given the example listed in the Many-to-many transformation section; we now define one association class to hold ultra information for the association:


The generated middle table and reference keys will be the following:


 


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