ItEr58S16RFAdaptacionInformesItEr55S14: Corrected the implementation of the method TaskElementDAO.getTasksByOrderAndDate().

It wasn't adapted to the new model based on scenarios and produced an exception.
This commit is contained in:
Jacobo Aragunde Pérez 2010-06-09 22:22:34 +02:00 committed by Javier Moran Rua
parent cbd9fcfcdd
commit 03199cdb68

View file

@ -124,7 +124,8 @@ public class TaskElementDAO extends GenericDAOHibernate<TaskElement, Long>
"SELECT task "
+ "FROM TaskSource taskSource "
+ "LEFT OUTER JOIN taskSource.task task "
+ "LEFT OUTER JOIN taskSource.orderElement orderElement "
+ "LEFT OUTER JOIN taskSource.schedulingData schedulingData "
+ "LEFT OUTER JOIN schedulingData.orderElement orderElement "
+ "WHERE task IN (SELECT task FROM Task task) ";
if (orders != null && !orders.isEmpty()) {