fun getOldValue()

in dnq-transient-store/src/main/kotlin/com/jetbrains/teamsys/dnq/association/AssociationSemantics.kt [117:129]


    fun getOldValue(e: TransientEntity, name: String): Entity? {
        return if (EntityOperations.isRemoved(e)) {
            val transientStore = e.store
            transientStore.persistentStore
                    .getEntity(e.id)
                    .getLink(name)
                    ?.let { result ->
                        transientStore.threadSessionOrThrow.newEntity(result)
                    }
        } else {
            getRemovedLinks(e, name).firstOrNull()
        }
    }