From 087426ee5cdc8f86172ed984ff33d85454d538ca Mon Sep 17 00:00:00 2001 From: Pim van Nierop Date: Mon, 11 Oct 2021 14:17:36 +0200 Subject: [PATCH] Move SessionRepository classes to repository package Removes it from session-service dependency jar, so that application context probles are avoided. --- .../cbioportal/session_service/domain/SessionRepository.java | 3 +-- .../internal => repository}/SessionRepositoryCustom.java | 2 +- .../{domain/internal => repository}/SessionRepositoryImpl.java | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) rename src/main/java/org/cbioportal/session_service/{domain/internal => repository}/SessionRepositoryCustom.java (97%) rename src/main/java/org/cbioportal/session_service/{domain/internal => repository}/SessionRepositoryImpl.java (98%) diff --git a/src/main/java/org/cbioportal/session_service/domain/SessionRepository.java b/src/main/java/org/cbioportal/session_service/domain/SessionRepository.java index 31e0b36..ff7f09e 100644 --- a/src/main/java/org/cbioportal/session_service/domain/SessionRepository.java +++ b/src/main/java/org/cbioportal/session_service/domain/SessionRepository.java @@ -32,10 +32,9 @@ package org.cbioportal.session_service.domain; -import org.cbioportal.session_service.domain.internal.SessionRepositoryCustom; +import org.cbioportal.session_service.repository.SessionRepositoryCustom; import org.springframework.data.mongodb.repository.MongoRepository; -import org.springframework.data.mongodb.repository.Query; /** * @author Manda Wilson diff --git a/src/main/java/org/cbioportal/session_service/domain/internal/SessionRepositoryCustom.java b/src/main/java/org/cbioportal/session_service/repository/SessionRepositoryCustom.java similarity index 97% rename from src/main/java/org/cbioportal/session_service/domain/internal/SessionRepositoryCustom.java rename to src/main/java/org/cbioportal/session_service/repository/SessionRepositoryCustom.java index c207844..ebb00ed 100644 --- a/src/main/java/org/cbioportal/session_service/domain/internal/SessionRepositoryCustom.java +++ b/src/main/java/org/cbioportal/session_service/repository/SessionRepositoryCustom.java @@ -30,7 +30,7 @@ * along with this program. If not, see . */ -package org.cbioportal.session_service.domain.internal; +package org.cbioportal.session_service.repository; import org.cbioportal.session_service.domain.Session; import org.cbioportal.session_service.domain.SessionType; diff --git a/src/main/java/org/cbioportal/session_service/domain/internal/SessionRepositoryImpl.java b/src/main/java/org/cbioportal/session_service/repository/SessionRepositoryImpl.java similarity index 98% rename from src/main/java/org/cbioportal/session_service/domain/internal/SessionRepositoryImpl.java rename to src/main/java/org/cbioportal/session_service/repository/SessionRepositoryImpl.java index d7005cc..215472c 100644 --- a/src/main/java/org/cbioportal/session_service/domain/internal/SessionRepositoryImpl.java +++ b/src/main/java/org/cbioportal/session_service/repository/SessionRepositoryImpl.java @@ -30,7 +30,7 @@ * along with this program. If not, see . */ -package org.cbioportal.session_service.domain.internal; +package org.cbioportal.session_service.repository; import org.bson.Document; import org.cbioportal.session_service.domain.Session;