mirror of
https://github.com/tursom/TursomServer.git
synced 2025-02-14 22:00:11 +08:00
Changes by tursom
This commit is contained in:
parent
fce060ed22
commit
60f27e5f9b
@ -31,7 +31,7 @@ import kotlin.reflect.jvm.isAccessible
|
|||||||
import kotlin.reflect.jvm.javaField
|
import kotlin.reflect.jvm.javaField
|
||||||
import kotlin.reflect.jvm.javaGetter
|
import kotlin.reflect.jvm.javaGetter
|
||||||
|
|
||||||
val logger = Slf4jImpl.getLogger("com.ddbes.pan.kit.jdbc")
|
val logger = Slf4jImpl.getLogger("cn.tursom.database")
|
||||||
|
|
||||||
val select: Query<*, *, Any>.(Array<out Any>) -> Any = Query<*, *, Any>::select
|
val select: Query<*, *, Any>.(Array<out Any>) -> Any = Query<*, *, Any>::select
|
||||||
|
|
||||||
@ -284,9 +284,9 @@ inline fun <reified T : Any, Children : Wrapper<T>> Update<Children, String>.set
|
|||||||
.uncheckedCast<Collection<KProperty1<T, *>>>()
|
.uncheckedCast<Collection<KProperty1<T, *>>>()
|
||||||
.filter {
|
.filter {
|
||||||
it.javaField != null &&
|
it.javaField != null &&
|
||||||
it.findAnnotation() ?: it.javaField?.getAnnotation(Transient::class.java) == null &&
|
(it.findAnnotation() ?: it.javaField?.getAnnotation(Transient::class.java)) == null &&
|
||||||
!Modifier.isTransient(it.javaField?.modifiers ?: Modifier.TRANSIENT) &&
|
!Modifier.isTransient(it.javaField?.modifiers ?: Modifier.TRANSIENT) &&
|
||||||
it.javaField?.getAnnotation(TableField::class.java)?.exist != false
|
it.javaField?.getAnnotation(TableField::class.java)?.exist != false
|
||||||
}
|
}
|
||||||
.forEach { property ->
|
.forEach { property ->
|
||||||
property.isAccessible = true
|
property.isAccessible = true
|
||||||
|
Loading…
Reference in New Issue
Block a user