remove id from Affectation object as it create a problem while serializing/deserializing it