// Add a multitenant id accessor to the descriptor (to be processed
// later) other mappings may need to look it up hence need to create a
// new mapping accessor.
if (tenantDiscriminatorField.isPrimaryKey()) {
MultitenantIdAccessor idAccessor = new MultitenantIdAccessor(m_contextProperty, tenantDiscriminatorField, getAccessibleObject(), descriptor.getClassAccessor());
descriptor.addMappingAccessor(idAccessor);
}
}