dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #27148
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 13468: AbstractEventService, made save methods @transactional
------------------------------------------------------------
revno: 13468
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Sun 2013-12-29 22:13:19 +0100
message:
AbstractEventService, made save methods @transactional
modified:
dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events/event/AbstractEventService.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events/event/AbstractEventService.java'
--- dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events/event/AbstractEventService.java 2013-12-29 17:54:54 +0000
+++ dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events/event/AbstractEventService.java 2013-12-29 21:13:19 +0000
@@ -60,6 +60,7 @@
import org.hisp.dhis.system.util.DateUtils;
import org.hisp.dhis.user.CurrentUserService;
import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.Assert;
import java.io.IOException;
@@ -152,12 +153,14 @@
// -------------------------------------------------------------------------
@Override
+ @Transactional
public ImportSummary saveEvent( Event event )
{
return saveEvent( event, null );
}
@Override
+ @Transactional
public ImportSummary saveEvent( Event event, ImportOptions importOptions )
{
Program program = programService.getProgram( event.getProgram() );