Fix SchematicNode.parentNode get

This commit is contained in:
2025-12-01 09:01:00 +01:00
parent d3fecf763c
commit 1c0146a02d
@@ -314,7 +314,7 @@ class SchematicNode(id: EntityID<Int>) : IntEntity(id) {
parentNodeId = value?.let { EntityID(it, SchematicNodeTable) }
}
val parentNode: SchematicNode?
get() = parent?.let { findById(it) }
get() = useDb { parent?.let { findById(it) } }
val optionalParent: Optional<Int> get() = Optional.ofNullable(parent)
var lastUpdate by SchematicNodeTable.lastUpdate.transform({ it.toInstant() }, { Timestamp.from(it) })