diff --git a/.forge/BAIS-SPRING-ARC-001-attempt-1.md b/.forge/BAIS-SPRING-ARC-001-attempt-1.md deleted file mode 100644 index a8d7337..0000000 --- a/.forge/BAIS-SPRING-ARC-001-attempt-1.md +++ /dev/null @@ -1,3 +0,0 @@ -# BAIS-SPRING-ARC-001-attempt-1 - -Forge 이슈 작업 브랜치 `forge/BAIS-SPRING-ARC-001-attempt-1`. diff --git a/src/main/java/com/example/demo/config/TransactionPolicyConfig.java b/src/main/java/com/example/demo/config/TransactionPolicyConfig.java deleted file mode 100644 index d913914..0000000 --- a/src/main/java/com/example/demo/config/TransactionPolicyConfig.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.example.demo.config; - -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; -import org.springframework.transaction.annotation.EnableTransactionManagement; - -@Configuration -@EnableTransactionManagement -public class TransactionPolicyConfig { - @Bean - public PlatformTransactionManager transactionManager(EntityManagerFactory entityManagerFactory) { - return new JpaTransactionManager(entityManagerFactory); - } -} \ No newline at end of file diff --git a/src/main/java/com/example/demo/controller/TransactionController.java b/src/main/java/com/example/demo/controller/TransactionController.java deleted file mode 100644 index 833bcbb..0000000 --- a/src/main/java/com/example/demo/controller/TransactionController.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.example.demo.controller; - -import org.springframework.web.bind.annotation.*; -import com.example.demo.service.TransactionService; -import com.example.demo.dto.TransactionDTO; - -@RestController -@RequestMapping("/api/transactions") -public class TransactionController { - private final TransactionService transactionService; - - public TransactionController(TransactionService transactionService) { - this.transactionService = transactionService; - } - - @PostMapping - public void createTransaction(@RequestBody TransactionDTO transactionDTO) { - transactionService.processTransaction(transactionDTO); - } -} \ No newline at end of file diff --git a/src/main/java/com/example/demo/dto/TransactionDTO.java b/src/main/java/com/example/demo/dto/TransactionDTO.java deleted file mode 100644 index d2bad5f..0000000 --- a/src/main/java/com/example/demo/dto/TransactionDTO.java +++ /dev/null @@ -1,9 +0,0 @@ -package com.example.demo.dto; - -public class TransactionDTO { - private Long id; - private Double amount; - private String description; - - // Getters and Setters -} \ No newline at end of file diff --git a/src/main/java/com/example/demo/error/ErrorResponse.java b/src/main/java/com/example/demo/error/ErrorResponse.java deleted file mode 100644 index b49c5fe..0000000 --- a/src/main/java/com/example/demo/error/ErrorResponse.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.example.demo.error; - -public class ErrorResponse { - private String message; - private int status; - - public ErrorResponse(String message, int status) { - this.message = message; - this.status = status; - } - - // Getters -} \ No newline at end of file diff --git a/src/main/java/com/example/demo/job/TransactionJobConfig.java b/src/main/java/com/example/demo/job/TransactionJobConfig.java deleted file mode 100644 index 991e60c..0000000 --- a/src/main/java/com/example/demo/job/TransactionJobConfig.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.example.demo.job; - -import org.springframework.batch.core.Job; -import org.springframework.batch.core.Step; -import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing; -import org.springframework.batch.core.configuration.annotation.JobBuilderFactory; -import org.springframework.batch.core.configuration.annotation.StepBuilderFactory; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -@Configuration -@EnableBatchProcessing -public class TransactionJobConfig { - private final JobBuilderFactory jobBuilderFactory; - private final StepBuilderFactory stepBuilderFactory; - - public TransactionJobConfig(JobBuilderFactory jobBuilderFactory, StepBuilderFactory stepBuilderFactory) { - this.jobBuilderFactory = jobBuilderFactory; - this.stepBuilderFactory = stepBuilderFactory; - } - - @Bean - public Job transactionJob() { - return jobBuilderFactory.get("transactionJob") - .start(transactionStep()) - .build(); - } - - @Bean - public Step transactionStep() { - return stepBuilderFactory.get("transactionStep") - .tasklet((contribution, chunkContext) -> { - // 배치 작업 로직 - return null; - }) - .build(); - } -} \ No newline at end of file diff --git a/src/main/java/com/example/demo/repository/TransactionRepository.java b/src/main/java/com/example/demo/repository/TransactionRepository.java deleted file mode 100644 index b545bba..0000000 --- a/src/main/java/com/example/demo/repository/TransactionRepository.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.example.demo.repository; - -import org.springframework.data.jpa.repository.JpaRepository; -import com.example.demo.model.Transaction; - -public interface TransactionRepository extends JpaRepository { -} \ No newline at end of file diff --git a/src/main/java/com/example/demo/service/TransactionService.java b/src/main/java/com/example/demo/service/TransactionService.java deleted file mode 100644 index d72cdcc..0000000 --- a/src/main/java/com/example/demo/service/TransactionService.java +++ /dev/null @@ -1,11 +0,0 @@ -package com.example.demo.service; - -import org.springframework.stereotype.Service; -import com.example.demo.dto.TransactionDTO; - -@Service -public class TransactionService { - public void processTransaction(TransactionDTO transactionDTO) { - // 거래 처리 로직 - } -} \ No newline at end of file