All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.lightningkite.lightningserver.db.testmodels.UniqueComboJankClassFields.kt Maven / Gradle / Ivy

The newest version!
@file:UseContextualSerialization(UUID::class)
@file:OptIn(ExperimentalSerializationApi::class, InternalSerializationApi::class)

package com.lightningkite.lightningserver.db.testmodels

import com.lightningkite.lightningdb.*
import kotlinx.serialization.Serializable
import kotlinx.serialization.UseContextualSerialization
import java.util.*
import kotlin.reflect.*
import kotlinx.serialization.*
import kotlinx.serialization.builtins.*
import kotlinx.serialization.internal.GeneratedSerializer
import java.time.*

fun prepareUniqueComboJankClassFields() {
    UniqueComboJankClass::_id.setCopyImplementation { original, value -> original.copy(_id = value) }
    UniqueComboJankClass::unique1.setCopyImplementation { original, value -> original.copy(unique1 = value) }
    UniqueComboJankClass::uniqueSet1.setCopyImplementation { original, value -> original.copy(uniqueSet1 = value) }
    UniqueComboJankClass::uniqueSet2.setCopyImplementation { original, value -> original.copy(uniqueSet2 = value) }
    UniqueComboJankClass::uniqueSet3.setCopyImplementation { original, value -> original.copy(uniqueSet3 = value) }
    UniqueComboJankClass::uniqueSet4.setCopyImplementation { original, value -> original.copy(uniqueSet4 = value) }
}
val  DataClassPath._id: DataClassPath get() = this[UniqueComboJankClass::_id]
val  DataClassPath.unique1: DataClassPath get() = this[UniqueComboJankClass::unique1]
val  DataClassPath.uniqueSet1: DataClassPath get() = this[UniqueComboJankClass::uniqueSet1]
val  DataClassPath.uniqueSet2: DataClassPath get() = this[UniqueComboJankClass::uniqueSet2]
val  DataClassPath.uniqueSet3: DataClassPath get() = this[UniqueComboJankClass::uniqueSet3]
val  DataClassPath.uniqueSet4: DataClassPath get() = this[UniqueComboJankClass::uniqueSet4]
inline val UniqueComboJankClass.Companion.path: DataClassPath get() = path()




© 2015 - 2024 Weber Informatics LLC | Privacy Policy