Entity ID types do not match types in database definition