Use short (xx)
problemMultipleChoiceDO.setExamCount (( Short ) 0); // is smallint types in the database