diff --git a/CommonCore/SQL/src/de/steamwar/sql/SchematicNode.kt b/CommonCore/SQL/src/de/steamwar/sql/SchematicNode.kt index 7117a4b0..96fd0901 100644 --- a/CommonCore/SQL/src/de/steamwar/sql/SchematicNode.kt +++ b/CommonCore/SQL/src/de/steamwar/sql/SchematicNode.kt @@ -314,7 +314,7 @@ class SchematicNode(id: EntityID) : 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 get() = Optional.ofNullable(parent) var lastUpdate by SchematicNodeTable.lastUpdate.transform({ it.toInstant() }, { Timestamp.from(it) })