From ab9eb6aba42457ed9adb21d7239c7729bb26bd15 Mon Sep 17 00:00:00 2001 From: zm330 Date: Sat, 29 Feb 2020 10:29:27 +0800 Subject: Add ServiceInfo Repository Issue-ID: SO-2368 Signed-off-by: zm330 Change-Id: Ib7adcad06970c2866100c1913ed944bbf53cf6ae --- .../data/repository/ServiceInfoRepository.java | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 mso-catalog-db/src/main/java/org/onap/so/db/catalog/data/repository/ServiceInfoRepository.java (limited to 'mso-catalog-db') diff --git a/mso-catalog-db/src/main/java/org/onap/so/db/catalog/data/repository/ServiceInfoRepository.java b/mso-catalog-db/src/main/java/org/onap/so/db/catalog/data/repository/ServiceInfoRepository.java new file mode 100644 index 0000000000..e3a4ca264e --- /dev/null +++ b/mso-catalog-db/src/main/java/org/onap/so/db/catalog/data/repository/ServiceInfoRepository.java @@ -0,0 +1,33 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP - SO + * ================================================================================ + * Copyright (c) 2019, CMCC Technologies Co., Ltd. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.so.db.catalog.data.repository; + +import org.onap.so.db.catalog.beans.Service; +import org.onap.so.db.catalog.beans.ServiceInfo; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.rest.core.annotation.RepositoryRestResource; + +@RepositoryRestResource(collectionResourceRel = "serviceInfo", path = "serviceInfo") +public interface ServiceInfoRepository extends JpaRepository { + + ServiceInfo findByService(Service service); + +} -- cgit 1.2.3-korg