Chapter 8 Creating J2EE Applications for BEA WebLogic


Defining a mapping for a Bean

PowerAMC supports simple O/R mapping and complex O/R mapping.

WebLogic Server can manage persistence of entity beans at the container level only in the case of simple O/R mapping (i.e. a class maps to only one table and a class attribute maps to only one table column).

The O/R mapping in the case of Enterprise Java Beans is specified in the Mapping tab of the Bean Class of the EJB Component. It is used to generate an O/R mapping descriptor (a XML file) for CMP EJBs in BEA WebLogic Server, or to generate BMP EJBs.

The Mapping tab describes where and how class instances are stored into the database (i.e. Data Source). A Data Source specifies the mappings for a class.

Once a Data Source is selected, the Mapping tab of the Bean class property sheet contains the following tabbed pages:

 


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