forked from SteamWar/SteamWar
Fix SchematicNode.parentNode get
This commit is contained in:
@@ -314,7 +314,7 @@ class SchematicNode(id: EntityID<Int>) : IntEntity(id) {
|
|||||||
parentNodeId = value?.let { EntityID(it, SchematicNodeTable) }
|
parentNodeId = value?.let { EntityID(it, SchematicNodeTable) }
|
||||||
}
|
}
|
||||||
val parentNode: SchematicNode?
|
val parentNode: SchematicNode?
|
||||||
get() = parent?.let { findById(it) }
|
get() = useDb { parent?.let { findById(it) } }
|
||||||
|
|
||||||
val optionalParent: Optional<Int> get() = Optional.ofNullable(parent)
|
val optionalParent: Optional<Int> get() = Optional.ofNullable(parent)
|
||||||
var lastUpdate by SchematicNodeTable.lastUpdate.transform({ it.toInstant() }, { Timestamp.from(it) })
|
var lastUpdate by SchematicNodeTable.lastUpdate.transform({ it.toInstant() }, { Timestamp.from(it) })
|
||||||
|
|||||||
Reference in New Issue
Block a user