Ignore:
Timestamp:
12/19/13 14:36:04 (10 years ago)
Author:
olhsha
Message:

adding trasnactional, refactoring and fixing bugs in updated annotations, removing try-catch from resource methods (The Greek's advice)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/java/eu/dasish/annotation/backend/rest/NotebookResource.java

    r3722 r4207  
    1919
    2020import eu.dasish.annotation.backend.dao.DBIntegrityService;
     21import java.io.IOException;
     22import java.sql.SQLException;
    2123import javax.servlet.http.HttpServletRequest;
    2224import javax.ws.rs.Path;
     
    2426import javax.ws.rs.core.UriInfo;
    2527import javax.ws.rs.ext.Providers;
     28import javax.xml.parsers.ParserConfigurationException;
    2629import org.springframework.beans.factory.annotation.Autowired;
    2730import org.springframework.stereotype.Component;
     31import org.springframework.transaction.annotation.Transactional;
    2832
    2933/**
     
    3438@Component
    3539@Path("/notebooks")
     40@Transactional(rollbackFor={Exception.class, SQLException.class, IOException.class, ParserConfigurationException.class})
    3641public class NotebookResource {
    3742
Note: See TracChangeset for help on using the changeset viewer.