Search in sources :

Example 1 with ManyToOneMapping

use of org.eclipse.persistence.mappings.ManyToOneMapping in project eclipselink by eclipse-ee4j.

the class ManyToOneAccessor method process.

/**
 * INTERNAL:
 * Process a many to one setting into an EclipseLink OneToOneMapping.
 */
@Override
public void process() {
    super.process();
    // Initialize our mapping now with what we found.
    ObjectReferenceMapping mapping = initManyToOneMapping();
    if (mapping instanceof ManyToOneMapping) {
        // Process the owning keys for this mapping.
        processOwningMappingKeys((ManyToOneMapping) mapping);
    } else {
        processForeignKeyRelationship(mapping);
    }
}
Also used : ObjectReferenceMapping(org.eclipse.persistence.mappings.ObjectReferenceMapping) ManyToOneMapping(org.eclipse.persistence.mappings.ManyToOneMapping)

Aggregations

ManyToOneMapping (org.eclipse.persistence.mappings.ManyToOneMapping)1 ObjectReferenceMapping (org.eclipse.persistence.mappings.ObjectReferenceMapping)1