From 8b0131458e5410cd99b0aa44caf16520fe402be9 Mon Sep 17 00:00:00 2001 From: Maximilian Wesener Date: Thu, 18 Jul 2024 10:30:29 +0200 Subject: [PATCH] chore(contracts):1105 Refactored. --- .../repository/ContractAsBuiltRepositoryImpl.java | 3 --- .../repository/ContractAsPlannedRepositoryImpl.java | 1 - .../repository/ContractNotificationRepositoryImpl.java | 2 -- .../infrastructure/repository/ContractRepositoryImplBase.java | 3 --- 4 files changed, 9 deletions(-) diff --git a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/contracts/infrastructure/repository/ContractAsBuiltRepositoryImpl.java b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/contracts/infrastructure/repository/ContractAsBuiltRepositoryImpl.java index f0b1c396f0..e0f6eb109e 100644 --- a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/contracts/infrastructure/repository/ContractAsBuiltRepositoryImpl.java +++ b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/contracts/infrastructure/repository/ContractAsBuiltRepositoryImpl.java @@ -19,7 +19,6 @@ package org.eclipse.tractusx.traceability.contracts.infrastructure.repository; import com.fasterxml.jackson.databind.ObjectMapper; -import jakarta.transaction.Transactional; import lombok.extern.slf4j.Slf4j; import org.eclipse.tractusx.irs.edc.client.contract.model.exception.ContractAgreementException; import org.eclipse.tractusx.irs.edc.client.contract.service.EdcContractAgreementService; @@ -31,9 +30,7 @@ import org.springframework.stereotype.Component; import java.util.List; -import java.util.stream.Collectors; -@Transactional @Component @Slf4j public class ContractAsBuiltRepositoryImpl extends ContractRepositoryImplBase implements ContractRepository { diff --git a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/contracts/infrastructure/repository/ContractAsPlannedRepositoryImpl.java b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/contracts/infrastructure/repository/ContractAsPlannedRepositoryImpl.java index 168a9dded5..ca203ec57a 100644 --- a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/contracts/infrastructure/repository/ContractAsPlannedRepositoryImpl.java +++ b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/contracts/infrastructure/repository/ContractAsPlannedRepositoryImpl.java @@ -33,7 +33,6 @@ import java.util.List; import java.util.stream.Collectors; -@Transactional @Component @Slf4j public class ContractAsPlannedRepositoryImpl extends ContractRepositoryImplBase implements ContractRepository { diff --git a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/contracts/infrastructure/repository/ContractNotificationRepositoryImpl.java b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/contracts/infrastructure/repository/ContractNotificationRepositoryImpl.java index e00092cccb..1772160967 100644 --- a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/contracts/infrastructure/repository/ContractNotificationRepositoryImpl.java +++ b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/contracts/infrastructure/repository/ContractNotificationRepositoryImpl.java @@ -19,7 +19,6 @@ package org.eclipse.tractusx.traceability.contracts.infrastructure.repository; import com.fasterxml.jackson.databind.ObjectMapper; -import jakarta.transaction.Transactional; import lombok.extern.slf4j.Slf4j; import org.eclipse.tractusx.irs.edc.client.contract.model.exception.ContractAgreementException; import org.eclipse.tractusx.irs.edc.client.contract.service.EdcContractAgreementService; @@ -33,7 +32,6 @@ import java.util.List; import java.util.stream.Collectors; -@Transactional @Component @Slf4j public class ContractNotificationRepositoryImpl extends ContractRepositoryImplBase implements ContractRepository { diff --git a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/contracts/infrastructure/repository/ContractRepositoryImplBase.java b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/contracts/infrastructure/repository/ContractRepositoryImplBase.java index 05792a6ae2..86c97cd604 100644 --- a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/contracts/infrastructure/repository/ContractRepositoryImplBase.java +++ b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/contracts/infrastructure/repository/ContractRepositoryImplBase.java @@ -20,9 +20,7 @@ import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; -import jakarta.transaction.Transactional; import lombok.AllArgsConstructor; -import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.tuple.ImmutablePair; import org.eclipse.tractusx.irs.edc.client.contract.model.EdcContractAgreementNegotiationResponse; @@ -47,7 +45,6 @@ @Component @AllArgsConstructor @Slf4j -@Transactional public class ContractRepositoryImplBase { private final EdcContractAgreementService edcContractAgreementService;