Replace hard-coded dto->entity_id/valid_from/valid_until accesses in TemporalRepository with trait calls (F::entityId/validFrom/validUntil). DTOs register canonical→actual member name mapping via OATPP_AUTHKIT_REGISTER_TEMPORAL. Forgetting to register is a hard compile error. ITemporalEntity marker is gone; the trait specialisation carries the contract. Bumps version 0.4.0 → 0.5.0. New test verifies the full save/close/history/softDelete flow against a DTO whose columns are id/effective_from/effective_until rather than the canonical names — exercises the renaming the trait enables. Closes #10 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| test_body_size_limit.cpp | ||
| test_json_serialization.cpp | ||
| test_negotiation.cpp | ||
| test_queryable.cpp | ||
| test_repository_decorators.cpp | ||
| test_repository_interface.cpp | ||
| test_security_headers.cpp | ||
| test_temporal_field_traits.cpp | ||