I have a repository that receives a domain object which is mapped to a data access object (DAO). To update the entity, I remove the instance with the same Id and add the map