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

com.lightningkite.lightningdb.HasIdFields.kt Maven / Gradle / Ivy

The newest version!
package com.lightningkite.lightningdb

import kotlin.reflect.KProperty1

@Suppress("UNCHECKED_CAST")
object HasIdFields {
    fun , ID: Comparable> _id() = HasId::_id as KProperty1
}
@Suppress("UNCHECKED_CAST")
object HasEmailFields {
    fun  email() = HasEmail::email as KProperty1
}
@Suppress("UNCHECKED_CAST")
object HasPhoneNumberFields {
    fun  phoneNumber() = HasPhoneNumber::phoneNumber as KProperty1
}
@Suppress("UNCHECKED_CAST")
object HasMaybeEmailFields {
    fun  email() = HasMaybeEmail::email as KProperty1
}
@Suppress("UNCHECKED_CAST")
object HasMaybePhoneNumberFields {
    fun  phoneNumber() = HasMaybePhoneNumber::phoneNumber as KProperty1
}
@Suppress("UNCHECKED_CAST")
object HasPasswordFields {
    fun  hashedPassword() = HasPassword::hashedPassword as KProperty1
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy