// in later processing.
descriptor.setUsesCascadedOptimisticLocking(m_cascade != null && m_cascade.booleanValue());
} else if (m_type.name().equals(OptimisticLockingType.ALL_COLUMNS.name())) {
descriptor.setOptimisticLockingPolicy(new AllFieldsLockingPolicy());
} else if (m_type.name().equals(OptimisticLockingType.CHANGED_COLUMNS.name())) {
descriptor.setOptimisticLockingPolicy(new ChangedFieldsLockingPolicy());
} else if (m_type.name().equals(OptimisticLockingType.SELECTED_COLUMNS.name())) {
if (m_selectedColumns.isEmpty()) {
throw ValidationException.optimisticLockingSelectedColumnNamesNotSpecified(descriptor.getJavaClass());
} else {
SelectedFieldsLockingPolicy policy = new SelectedFieldsLockingPolicy();