2e2c0872b67c4b3513198aeb86a1f86d59774c3a
[so.git] /
1 /***
2  * Copyright (C) 2019 Verizon. All Rights Reserved Licensed under the Apache License, Version 2.0 (the "License"); you
3  * may not use this file except in compliance with the License. You may obtain a copy of the License at
4  *
5  * http://www.apache.org/licenses/LICENSE-2.0
6  *
7  * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
8  * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
9  * specific language governing permissions and limitations under the License.
10  */
11
12 package org.onap.so.db.request.data.repository;
13
14 import org.onap.so.db.request.beans.InstanceNfvoMapping;
15 import org.onap.so.db.request.beans.OperationStatus;
16 import org.onap.so.db.request.beans.OperationStatusId;
17 import org.springframework.data.jpa.repository.JpaRepository;
18 import org.springframework.data.repository.query.Param;
19 import org.springframework.data.rest.core.annotation.RepositoryRestResource;
20
21 @RepositoryRestResource(collectionResourceRel = "instanceNfvoMapping", path = "instanceNfvoMapping")
22 public interface InstanceNfvoMappingRepository extends JpaRepository<InstanceNfvoMapping, String> {
23
24     public InstanceNfvoMapping findOneByInstanceId(String instanceId);
25
26     public InstanceNfvoMapping findOneByJobId(String jobId);
27
28 }