EntityState: state type change from String to int