Skip to content

Feat/be: inventory-infrastructure 레이어 구현 (JPA 어댑터) #79

Description

@hsb4225

📝 작업 내용

inventory-domain/application의 포트 인터페이스를 JPA로 구현합니다.

  • InventoryJpaEntityinventory 테이블 매핑, @Version 낙관적 잠금
  • InventoryHistoryJpaEntityinventory_history 테이블 매핑
  • InventoryJpaRepository / InventoryHistoryJpaRepository — Spring Data JPA
  • InventoryRepositoryAdapterInventoryRepository 포트 구현 (도메인 ↔ Entity 변환)
  • InventoryHistoryRepositoryAdapterInventoryHistoryRepository 포트 구현
  • InventoryConfig@bean 등록

Definition of Done (DoD)

  • @Version을 통한 낙관적 잠금으로 동시 재고 차감 시 ObjectOptimisticLockingFailureException 발생
  • InventoryRepository.findByProductId() / save() 포트 계약 준수
  • order-infrastructure StubInventoryReserveAdapter 를 실제 구현체로 교체 가능한 상태

Related

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions