Removed transactional annotations from simple select queries.

Change-Id: Ifb8e17237b67e59a5247ee4bc1b62eeda046b2d9


Change-Id: Ifb8e17237b67e59a5247ee4bc1b62eeda046b2d9
diff --git a/full/Changes b/full/Changes
index 030fdfb..f39835b 100644
--- a/full/Changes
+++ b/full/Changes
@@ -10,6 +10,8 @@
    - Handled pipe errors and added tests (margaretha)
 19/12/2019
    - Updated create update user-group API (margaretha)
+20/12/2019
+   - Removed transactional annotations from simple select queries (margaretha)   
     
 # version 0.62.2
 17/10/2019
diff --git a/full/src/main/java/de/ids_mannheim/korap/dao/AdminDaoImpl.java b/full/src/main/java/de/ids_mannheim/korap/dao/AdminDaoImpl.java
index 249f144..54cab51 100644
--- a/full/src/main/java/de/ids_mannheim/korap/dao/AdminDaoImpl.java
+++ b/full/src/main/java/de/ids_mannheim/korap/dao/AdminDaoImpl.java
@@ -22,7 +22,7 @@
  * @author margaretha
  *
  */
-@Transactional
+//@Transactional
 @Repository
 public class AdminDaoImpl implements AdminDao {
 
diff --git a/full/src/main/java/de/ids_mannheim/korap/dao/DefaultSettingDao.java b/full/src/main/java/de/ids_mannheim/korap/dao/DefaultSettingDao.java
index bc7afdd..858b7c7 100644
--- a/full/src/main/java/de/ids_mannheim/korap/dao/DefaultSettingDao.java
+++ b/full/src/main/java/de/ids_mannheim/korap/dao/DefaultSettingDao.java
@@ -23,7 +23,6 @@
  * @author margaretha
  *
  */
-@Transactional
 @Repository
 public class DefaultSettingDao {
 
@@ -41,6 +40,7 @@
      *            default settings in json
      * @throws KustvaktException
      */
+    @Transactional
     public void createDefaultSetting (String username, String settings)
             throws KustvaktException {
         ParameterChecker.checkStringValue(username, "username");
@@ -49,12 +49,14 @@
         entityManager.persist(us);
     }
 
+    @Transactional
     public void updateDefaultSetting (DefaultSetting defaultSetting)
             throws KustvaktException {
         ParameterChecker.checkObjectValue(defaultSetting, "defaultSetting");
         entityManager.merge(defaultSetting);
     }
 
+    @Transactional
     public void deleteDefaultSetting (String username)
             throws KustvaktException {
         ParameterChecker.checkObjectValue(username, "defaultSetting");