* INTERNAL:
* Process an embedded.
*/
public void process() {
// Build and aggregate object mapping and add it to the descriptor.
AggregateMapping mapping = getOwningDescriptor().getClassDescriptor().newAggregateMapping();
setMapping(mapping);
mapping.setReferenceClassName(getReferenceClassName());
mapping.setAttributeName(getAttributeName());
// Will check for PROPERTY access
setAccessorMethods(mapping);
// EIS and ORDT mappings may not be aggregate object mappings.
if (mapping.isAggregateObjectMapping()) {
AggregateObjectMapping aggregateMapping = (AggregateObjectMapping) mapping;
aggregateMapping.setIsNullAllowed(true);
// Process attribute overrides.
processAttributeOverrides(m_attributeOverrides, aggregateMapping, getReferenceDescriptor());
// Process association overrides.
processAssociationOverrides(m_associationOverrides, aggregateMapping, getReferenceDescriptor());
// Process converts.
processConverts(getConverts(m_converts), aggregateMapping, getReferenceClass(), false);
} else if (mapping.isAbstractCompositeObjectMapping()) {
((AbstractCompositeObjectMapping)mapping).setField(getDatabaseField(getDescriptor().getPrimaryTable(), MetadataLogger.COLUMN));
}
// Process a @ReturnInsert and @ReturnUpdate (to log a warning message)
processReturnInsertAndUpdate();