chore: remove sample portfolio module

This commit is contained in:
DongHyeonka
2026-08-13 21:47:15 +09:00
parent e552e317d6
commit 697fc740e6
321 changed files with 190 additions and 18961 deletions
@@ -68,10 +68,9 @@ Adapters that serve one optional capability carry that capability's switch, unli
module. The `fileserver` package is the current case: every `Jpa*` adapter there is annotated
`@ConditionalOnProperty(prefix = "app.fileserver-platform", name = "enabled", havingValue = "true")`.
Without the gate a composition root that merely includes this module builds those beans, and each of
them needs collaborators only the Fileserver configuration supplies — which is how `sample-portfolio`
came to fail on a `FileStateMachine` it has no use for. A store for a capability nobody enabled
should not exist.
Without the gate a composition root that merely includes this module builds those beans, although
their collaborators exist only when Fileserver configuration is selected. A store for a capability
nobody enabled should not exist.
## Allowed
@@ -174,7 +173,7 @@ framework-neutral `shared.error.PersistenceFailureException` carrying one of the
Audit metadata (`created_at` / `updated_at` / `created_by` / `updated_by`, D3) is an
infrastructure concern that must never reach `domain-core` (D2). It lives only on the
`audit/AuditableEntity` `@MappedSuperclass`; a domain aggregate persistence entity opts in
by extending it (D6 — e.g. the sample `WorkLogEntity`). The domain aggregate itself carries
by extending it (D6). The domain aggregate itself carries
zero audit fields, enforced by ArchUnit `domain_is_pure` (no `jakarta.persistence..`) plus
`domain_entities_do_not_carry_audit_fields` (no `createdAt`/`updatedAt`/`createdBy`/`updatedBy`
fields under `..domain..`).
@@ -11,8 +11,7 @@ import org.junit.jupiter.api.Test;
* (feature-persistence-auditing-contract D1/D3/D4/D5).
*
* <p>Exercised through a tiny concrete subclass because {@link AuditableEntity} is a
* {@code @MappedSuperclass} (JPA cannot instantiate it standalone, and the production subclass
* {@code WorkLogEntity} lives in the sample module).
* {@code @MappedSuperclass} (JPA cannot instantiate it standalone).
*/
class AuditableEntityTest {