You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by mm...@apache.org on 2019/12/09 13:27:01 UTC
[syncope] branch 2_1_X updated: SYNCOPE-1523: JPAConnInstanceDAO: mark find()/authFind() methods… (#144)
This is an automated email from the ASF dual-hosted git repository.
mmoayyed pushed a commit to branch 2_1_X
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/2_1_X by this push:
new 9ba8e8e SYNCOPE-1523: JPAConnInstanceDAO: mark find()/authFind() methods… (#144)
9ba8e8e is described below
commit 9ba8e8e68c65bb81057f1520f07113175ef1d901
Author: Misagh Moayyed <mm...@gmail.com>
AuthorDate: Mon Dec 9 17:26:52 2019 +0400
SYNCOPE-1523: JPAConnInstanceDAO: mark find()/authFind() methods… (#144)
---
.../apache/syncope/core/persistence/jpa/dao/JPAConnInstanceDAO.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/JPAConnInstanceDAO.java b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/JPAConnInstanceDAO.java
index 88af802..049fea3 100644
--- a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/JPAConnInstanceDAO.java
+++ b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/JPAConnInstanceDAO.java
@@ -36,6 +36,7 @@ import org.apache.syncope.core.spring.security.AuthContextUtils;
import org.apache.syncope.core.spring.security.DelegatedAdministrationException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
+import org.springframework.transaction.annotation.Transactional;
@Repository
public class JPAConnInstanceDAO extends AbstractDAO<ConnInstance> implements ConnInstanceDAO {
@@ -49,11 +50,13 @@ public class JPAConnInstanceDAO extends AbstractDAO<ConnInstance> implements Con
@Autowired
private ConnectorRegistry connRegistry;
+ @Transactional(readOnly = true)
@Override
public ConnInstance find(final String key) {
return entityManager().find(JPAConnInstance.class, key);
}
+ @Transactional(readOnly = true)
@Override
public ConnInstance authFind(final String key) {
ConnInstance connInstance = find(key);