The Order Repository is the layer between ATG Commerce and the database server. The repository is where Orders are saved after processing and stored in between customers’ visits to your site. It is implemented using a SQL repository.

The Order Repository definition file defines the item descriptors for all commerce classes; for every class that is saved, there exists a corresponding item descriptor. Each item descriptor defines a repository item type that describes all the properties that are common to the repository items of that type. Additionally, each item descriptor subtype inherits all of the properties of its parent item descriptor. For example, the hardgoodShippingGroup item descriptor extends the shippingGroup item descriptor, so it inherits all of the properties of the shippingGroup item descriptor.

The base Order Repository definition file is located at <ATG9dir>/DCS/config/atg/commerce/order/orderrepository.xml. In ATG Consumer Commerce, this base file is combined with an additional definition file that is located at <ATG9dir>/B2CCommerce/config/atg/commerce/order/orderrepository.xml. In ATG Business Commerce, this base file is combined with an additional definition file that is located at <ATG9dir>/B2BCommerce/config/atg/commerce/order/orderrepository.xml.

The beanNameToItemDescriptorMap property of the OrderTools component maps the Order Repository item descriptors to Bean names. In ATG Commerce, the processors that save and load an Order look for an item descriptor that is mapped to the corresponding commerce object class; the beanNameToItemDescriptorMap property contains this mapping. You can view the mapping by accessing the Pages and Components > Components by Path area of the ATG Control Center and opening the OrderTools component, which is located at /atg/commerce/order/.

For more information about the OrderTools component, see the OrderTools section of the Working With Purchase Process Objects chapter. For more information about saving and loading orders, see the Configuring Purchase Process Services chapter. For more information on SQL repositories, see the ATG Repository Guide.

loading table of contents...