vitorsouza/Zanshin — Issue #3: Move the AwReq target replacement code from the repository service to the EMF model
Author: vitorsouza
Created: 2012-02-15 11:07:13+00:00
State: open
Labels: Improvement

When you replace a requirement instance with another, if this requirement is the target of one or more AwReq, the target reference in these AwReqs should be updated, because this association is not bidirectional.

Recently, all requirement replacement code has been moved from the repository service (`it.unitn.disi.zanshin.internal.services.RepositoryService`) to the EMF classes themselves (`RequirementImpl`, `SoftgoalImpl`, `QualityConstraintImpl` and `AwReqImpl` in package `it.unitn.disi.zanshin.model.gore.impl`, plus class `it.unitn.disi.zanshin.model.eca.impl.EcaAwReqImpl`) to follow a more object oriented approach to the problem (see the issue's first comment). However, the code that does the aforementioned AwReq target replacement is still in the repository.

To close this issue, figure out a way to move this code to the EMF classes themselves and do it.