Open vlsi opened 3 years ago
Currently, only testCache(EntityID<ID>) is present, so please add testCache(ID): https://github.com/JetBrains/Exposed/blob/d59247283dc8c1af019e3e2a8c75c7519d1fdb6d/exposed-dao/src/main/kotlin/org/jetbrains/exposed/dao/EntityClass.kt#L73-L75
testCache(EntityID<ID>)
testCache(ID)
For instance, get(...) has two variations:
get(...)
https://github.com/JetBrains/Exposed/blob/d59247283dc8c1af019e3e2a8c75c7519d1fdb6d/exposed-dao/src/main/kotlin/org/jetbrains/exposed/dao/EntityClass.kt#L20-L22
Workaround is
fun<ID: Comparable<ID>, T : Entity<ID>> EntityClass<ID, T>.testCache(id: ID) = testCache(EntityID(id, table))
Currently, only
testCache(EntityID<ID>)
is present, so please addtestCache(ID)
: https://github.com/JetBrains/Exposed/blob/d59247283dc8c1af019e3e2a8c75c7519d1fdb6d/exposed-dao/src/main/kotlin/org/jetbrains/exposed/dao/EntityClass.kt#L73-L75For instance,
get(...)
has two variations:https://github.com/JetBrains/Exposed/blob/d59247283dc8c1af019e3e2a8c75c7519d1fdb6d/exposed-dao/src/main/kotlin/org/jetbrains/exposed/dao/EntityClass.kt#L20-L22