You can try to change the field type in the database to tinyint so that spring data can do the mapping directly