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
5 * http://www.apache.org/licenses/LICENSE-2.0
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.
12 package org.onap.so.db.request.data.repository;
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;
21 @RepositoryRestResource(collectionResourceRel = "instanceNfvoMapping", path = "instanceNfvoMapping")
22 public interface InstanceNfvoMappingRepository extends JpaRepository<InstanceNfvoMapping, String> {
24 public InstanceNfvoMapping findOneByInstanceId(String instanceId);
26 public InstanceNfvoMapping findOneByJobId(String jobId);