summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-core/src
diff options
context:
space:
mode:
authorSri Balaji Marripud <sri.balaji.marripud@att.com>2020-09-30 01:26:56 -0400
committerSri Balaji Marripud <sri.balaji.marripud@att.com>2020-09-30 01:27:12 -0400
commit31dcabeac42f1689d14b715385d9907ac3d4d11e (patch)
treea9ff6c4e6e219a0c229347ab45e56909487b92f6 /ecomp-sdk/epsdk-core/src
parent622186289b45d3408c4308de8beb49fefac523bf (diff)
roll-back the spring version to old
Issue-ID: PORTAL-945 Change-Id: I60b032801e46af05ba94f14816901bb85597b1d7 Signed-off-by: Sri Balaji Marripud <sri.balaji.marripud@att.com>
Diffstat (limited to 'ecomp-sdk/epsdk-core/src')
-rw-r--r--ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/conf/HibernateConfiguration.java4
-rw-r--r--ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/DataAccessServiceImplTest.java10
2 files changed, 7 insertions, 7 deletions
diff --git a/ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/conf/HibernateConfiguration.java b/ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/conf/HibernateConfiguration.java
index fe4bcae7..da3dc60a 100644
--- a/ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/conf/HibernateConfiguration.java
+++ b/ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/conf/HibernateConfiguration.java
@@ -52,8 +52,8 @@ import org.onap.portalsdk.core.util.SystemProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
-import org.springframework.orm.hibernate5.HibernateTransactionManager;
-import org.springframework.orm.hibernate5.LocalSessionFactoryBean;
+import org.springframework.orm.hibernate4.HibernateTransactionManager;
+import org.springframework.orm.hibernate4.LocalSessionFactoryBean;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import com.mchange.v2.c3p0.ComboPooledDataSource;
diff --git a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/DataAccessServiceImplTest.java b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/DataAccessServiceImplTest.java
index 36f766c8..9a0003d4 100644
--- a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/DataAccessServiceImplTest.java
+++ b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/DataAccessServiceImplTest.java
@@ -43,8 +43,8 @@ import java.util.List;
import java.util.Map;
import org.hibernate.Criteria;
-import org.hibernate.query.Query;
-import org.hibernate.query.NativeQuery;
+import org.hibernate.Query;
+import org.hibernate.SQLQuery;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.criterion.Criterion;
@@ -218,7 +218,7 @@ public class DataAccessServiceImplTest {
@Test
public void getLookupListTest() {
Session mockedSession = Mockito.mock(Session.class);
- NativeQuery mockSQLQuery = Mockito.mock(NativeQuery.class);
+ SQLQuery mockSQLQuery = Mockito.mock(SQLQuery.class);
Mockito.when(sessionFactory.getCurrentSession()).thenReturn(mockedSession);
Mockito.when(mockedSession.createSQLQuery(Mockito.anyString())).thenReturn(mockSQLQuery);
Mockito.when(mockSQLQuery.list()).thenReturn(new ArrayList());
@@ -229,7 +229,7 @@ public class DataAccessServiceImplTest {
@Test
public void executeSQLQueryWithoutRangeTest() {
Session mockedSession = Mockito.mock(Session.class);
- NativeQuery mockSQLQuery = Mockito.mock(NativeQuery.class);
+ SQLQuery mockSQLQuery = Mockito.mock(SQLQuery.class);
Mockito.when(sessionFactory.getCurrentSession()).thenReturn(mockedSession);
Mockito.when(mockedSession.createSQLQuery(Mockito.anyString())).thenReturn(mockSQLQuery);
Mockito.when(mockSQLQuery.addEntity("org.onap.portalsdk.core.domain.support.domainvo", DomainVo.class))
@@ -241,7 +241,7 @@ public class DataAccessServiceImplTest {
@Test
public void executeSQLQueryTest() {
Session mockedSession = Mockito.mock(Session.class);
- NativeQuery mockSQLQuery = Mockito.mock(NativeQuery.class);
+ SQLQuery mockSQLQuery = Mockito.mock(SQLQuery.class);
Mockito.when(sessionFactory.getCurrentSession()).thenReturn(mockedSession);
Mockito.when(mockedSession.createSQLQuery(Mockito.anyString())).thenReturn(mockSQLQuery);
Mockito.when(mockSQLQuery.addEntity("org.onap.portalsdk.core.domain.support.domainvo", DomainVo.class))