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

com.tianyisoft.database.relations.HasOne.kt Maven / Gradle / Ivy

The newest version!
package com.tianyisoft.database.relations

open class HasOne(
    override val table: String,
    override val foreignKey: String,
    override val localKey: String = "id"
) : HasMany(table, foreignKey, localKey) {
    override var recursive = false
    override fun clone(): Any {
        val hasOne = HasOne(table, foreignKey, localKey)
        hasOne.recursive = recursive
        copyAttributes(hasOne)
        return hasOne
    }

    override fun copy(): HasOne {
        return clone() as HasOne
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy