Fixed the generated code for default value of 0 to a class mapped to an enum