ItEr43S09ImplantacionAplicacionItEr42S13: Removing no longer needed query method

This commit is contained in:
Óscar González Fernández 2010-01-11 18:02:42 +01:00
parent b211bd7a61
commit 7bbb1d827d
2 changed files with 0 additions and 17 deletions

View file

@ -55,7 +55,4 @@ public interface IResourceAllocationDAO extends
Map<Criterion, List<GenericResourceAllocation>> findGenericAllocationsByCriterionFor(
List<Task> task);
List<Criterion> findCriterionByResourceAllocation(
ResourceAllocation allocation);
}

View file

@ -123,20 +123,6 @@ public class ResourceAllocationDAO extends
return stripAllocationsWithoutAssignations(byCriterion(results));
}
@SuppressWarnings("unchecked")
@Override
public List<Criterion> findCriterionByResourceAllocation(
ResourceAllocation allocation) {
List<Criterion> results = getSession()
.createQuery(
"select criterion "
+ "from GenericResourceAllocation as generic "
+ "join generic.criterions as criterion where generic in(:allocation)")
.setParameter("allocation", allocation)
.list();
return results;
}
@SuppressWarnings("unchecked")
@Override
public Map<Criterion, List<GenericResourceAllocation>> findGenericAllocationsByCriterionFor(