package com.epam.ta.reportportal.dao;

import com.epam.ta.reportportal.entity.integration.Integration;

/**
 * @author Ivan Budayeu
 */
public interface IntegrationRepository extends ReportPortalRepository<Integration, Long>, IntegrationRepositoryCustom {
}

@@ -1,8 +1,604 @@
+/*%0A * Copyright 2018 EPAM Systems%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A
 package 
@@ -697,32 +697,110 @@
 n;%0A%0A
-/**%0A * @author Ivan Buda
+import java.util.List;%0Aimport java.util.Optional;%0A%0A/**%0A * @author Ivan Budayeu%0A * @author Andrei Varab
 yeu%0A
@@ -922,11 +922,433 @@
 Custom %7B
+%0A%0A%09/**%0A%09 * Retrieves integration by ID and project ID%0A%09 *%0A%09 * @param id        ID of integrations%0A%09 * @param projectId ID of project%0A%09 * @return Optional of integration%0A%09 */%0A%09Optional%3CIntegration%3E findByIdAndProjectId(Long id, Long projectId);%0A%0A%09/**%0A%09 * Retrieves given project's integrations%0A%09 *%0A%09 * @param projectId ID of project%0A%09 * @return Found integrations%0A%09 */%0A%09List%3CIntegration%3E findAllByProjectId(Long projectId);
 %0A%7D%0A

update integration repository