#1291: ObjectIdRegistry.kt

projectforge-business/src/main/kotlin/org/projectforge/framework/persistence/database/json/ObjectIdRegistry.kt Circular Reference Tracker, projectforge-business/src/main/kotlin/org/projectforge/framework/persistence/database/json/ObjectIdRegistry.kt 53 lines · 21 code · 27 comments · 5 blank
Tracks already-serialized AbstractBaseDO objects during database JSON dump. Maintains a map of class → list of written IDs. The wasWritten() method checks if an entity with the same class and ID was already serialized; markAsWritten() registers an entity's ID to prevent circular reference recursion in the Jackson serializer.

Git History

868d6abb7 2025 -> 2026
63081666f Source file headers: 2024-> 2025.
31a7c1cba Migration stuff in progress...
b6092df09 Copyright 2023 -> 2024
ab45d51fa Copyright 2001-2022 -> 2001-2023.