From 4ad151a17a9169870f8420ec8cff9a54a9da05a4 Mon Sep 17 00:00:00 2001 From: Nacho Barrientos Date: Tue, 22 Nov 2011 18:01:04 +0100 Subject: [PATCH] Set a method transactional. FEA: ItEr75S27PerProjectDashboard --- .../libreplan/business/workreports/daos/WorkReportLineDAO.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libreplan-business/src/main/java/org/libreplan/business/workreports/daos/WorkReportLineDAO.java b/libreplan-business/src/main/java/org/libreplan/business/workreports/daos/WorkReportLineDAO.java index bc36c7dc9..1c1f7519c 100644 --- a/libreplan-business/src/main/java/org/libreplan/business/workreports/daos/WorkReportLineDAO.java +++ b/libreplan-business/src/main/java/org/libreplan/business/workreports/daos/WorkReportLineDAO.java @@ -38,6 +38,7 @@ import org.libreplan.business.workreports.entities.WorkReportLine; import org.springframework.beans.factory.config.BeanDefinition; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Repository; +import org.springframework.transaction.annotation.Transactional; /** * Dao for {@link WorkReportLineDAO} @@ -89,6 +90,7 @@ public class WorkReportLineDAO extends IntegrationEntityDAO @SuppressWarnings("unchecked") @Override + @Transactional(readOnly=true) public List findByOrderElementAndChildren(OrderElement orderElement, boolean sortByDate) { // Create collection with current orderElement and all its children Collection orderElements = orderElement.getAllChildren();