Description
Logic that creates Obj layer from the DB is not using mandatory flag and just always uses primitive types if possible.
On the other hand cgen tries to use Object types if field is nullable.
We should unify logic of these operations and always check nullability of the field.