CurrencyPairDao.ktDAO for CurrencyPairDO entities. Extends BaseDao<CurrencyPairDO>, inheriting standard CRUD operations, access control, and search. Provides merged history by also loading history entries from child CurrencyConversionRateDO records.
| Dependency | Role |
|---|---|
CurrencyConversionService | Used in addOwnHistoryEntries() to load all child rates for history merging |
By sourceCurrency then targetCurrency.
Enabled for sourceCurrency and targetCurrency fields (3-letter currency codes).
addOwnHistoryEntries() iterates over all child CurrencyConversionRateDO entries (including deleted) and merges their history into the parent's history context. This provides a unified audit trail showing both pair-level and rate-level changes.
Guarded by UserRightId.FIBU_CURRENCY_CONVERSION, set in init.
newInstance() returns a bare CurrencyPairDO().
868d6abb7 2025 -> 2026 75ea9dc1a WIP: currency conversion with Claude Code. 357ebee61 WIP: currency conversion with Claude Code. bd69407de Initial revision with Claude Code.