The intention is to modify a piece of data in the database.
The result uses the save method in dao.
The database requires a unique field because of the piece of data to be inserted (the piece of data that was originally intended to be modified).
So report this error.