[NUCCORE-1248] Add extra param into getConstraintName so we distinguish
on the class name, not the class name of the field