diff options
author | Pamela Dragosh <pdragosh@research.att.com> | 2017-12-06 16:05:43 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-12-06 16:05:43 +0000 |
commit | 775f45908025e46a40c9c147fca2066af5c8c5b8 (patch) | |
tree | 57f89e59b04feee8ebdbdde31af9dbe9d3f65619 /ONAP-PAP-REST/src/main/java/org/onap | |
parent | 709fe78e311189429a22c4ceebf20f19e89693f3 (diff) | |
parent | b3828de54af94f66e3a6e22bcaeb3372d14eab34 (diff) |
Merge "Refactor to provide Common Policy Validation"
Diffstat (limited to 'ONAP-PAP-REST/src/main/java/org/onap')
-rw-r--r-- | ONAP-PAP-REST/src/main/java/org/onap/policy/pap/xacml/rest/daoimpl/CommonClassDaoImpl.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ONAP-PAP-REST/src/main/java/org/onap/policy/pap/xacml/rest/daoimpl/CommonClassDaoImpl.java b/ONAP-PAP-REST/src/main/java/org/onap/policy/pap/xacml/rest/daoimpl/CommonClassDaoImpl.java index 1766cb302..c7148213d 100644 --- a/ONAP-PAP-REST/src/main/java/org/onap/policy/pap/xacml/rest/daoimpl/CommonClassDaoImpl.java +++ b/ONAP-PAP-REST/src/main/java/org/onap/policy/pap/xacml/rest/daoimpl/CommonClassDaoImpl.java @@ -44,9 +44,12 @@ import org.onap.policy.rest.jpa.GroupPolicyScopeList; import org.onap.policy.rest.jpa.PolicyRoles; import org.onap.policy.xacml.api.XACMLErrorConstants; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Primary; +import org.springframework.stereotype.Component; import org.springframework.stereotype.Service; @Service("CommonClassDao") +@Primary public class CommonClassDaoImpl implements CommonClassDao{ private static final Log LOGGER = LogFactory.getLog(CommonClassDaoImpl.class); @@ -54,6 +57,7 @@ public class CommonClassDaoImpl implements CommonClassDao{ private static SessionFactory sessionFactory; + @Autowired private CommonClassDaoImpl(SessionFactory sessionFactory){ CommonClassDaoImpl.sessionFactory = sessionFactory; |