Improve VariantSelector for easier version upgrades (if needed)

This commit is contained in:
2026-09-07 11:42:22 +02:00
parent cbfc1038b8
commit 0e4a0702d8
6 changed files with 42 additions and 24 deletions
@@ -288,6 +288,12 @@ class SchematicNode(id: EntityID<Int>) : IntEntity(id) {
find { (SchematicNodeTable.owner eq owner) and (SchematicNodeTable.name eq name) and (SchematicNodeTable.parent eq parent) }.firstOrNull()
}
@JvmStatic
fun getSchematicNode(parent: Int, name: String) =
useDb {
find { (SchematicNodeTable.parent eq parent) and (SchematicNodeTable.name eq name) }.firstOrNull()
}
@JvmStatic
fun getSchematicNode(owner: Int, name: String, parent: SchematicNode) =
getSchematicNode(owner, name, parent.nodeId)