mirror of
https://github.com/google/nomulus
synced 2026-01-08 23:23:32 +00:00
Unfortunately, much of the time there's a bit of a circular dependency in the object creation, e.g. the Domain object stores references to the billing events which store references to the history object which contains the Domain object. As a result, we allocate the history object's ID before creating it, so that it can be referenced in the other objects that store that reference, e.g. billing events. In addition, we add a utility copyFrom method in HistoryEntry.Builder to avoid unnecessary ID allocations.