* @See BasicCollectionAccessor and BasicMapAccessor.
*/
public DatabaseField getDatabaseField(String loggingCtx) {
// Check if we have an attribute override first, otherwise process for
// a column (ignoring if for a key column on a basic map)
MetadataColumn column;
if (m_descriptor.hasAttributeOverrideFor(getAttributeName())) {
column = m_descriptor.getAttributeOverrideFor(getAttributeName());
} else {
column = getColumn(loggingCtx);
}
// Get the actual database field and apply any defaults.
DatabaseField field = column.getDatabaseField();
// Set the correct field name, defaulting and logging when necessary.
String defaultName = column.getUpperCaseAttributeName();
field.setName(getName(field.getName(), defaultName, loggingCtx));
return field;
}