Skip to content

ADR-0004(想定): テナント分離実装 — Hibernate Filter vs Spring AOP を決定 #145

Description

@win2cot

背景

設計規約 §3.3 / コーディング規約 §8.1(PR #135)で、テナント絞り込みの自動付与方式は ADR で決定すると保留してある(想定 ADR-0004)。Sprint 0 着手時に決定して規約を緩和する必要がある。

作業

  • 選択肢 A: Hibernate Filter(@FilterDef + @Filter、SELECT のみ自動)
  • 選択肢 B: Spring AOP(@Around で Repository / EntityManager 操作を intercept)
  • 選択肢 C: 両者の併用
  • 各案で 1 機能(例: Task の参照系)を PoC 実装、性能・保守性・テスト容易性を比較
  • ADR-0004 として起票(template: docs/adr/0000-template.md)
  • 採用後、設計規約 §3.3 / コーディング規約 §8.1 を緩和

参照

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions