Alexander Khyzhun
12/23/2020, 10:22 AMAnkur Gupta
01/05/2021, 2:07 PMKaran
01/07/2021, 11:11 AMAnimesh Sahu
01/11/2021, 4:52 AMJitesh
01/12/2021, 1:00 PMsushma nayak
02/16/2021, 3:48 PMKaran
03/11/2021, 10:33 AMNikhil
05/30/2021, 6:08 PMmodifier = Modifier.neumorphic()
Nikhil
05/30/2021, 6:08 PMRahul from KUG DURG
08/31/2021, 8:26 PMRahul from KUG DURG
08/31/2021, 8:27 PMKunal Dabir
09/02/2021, 2:34 PMWant harness true power of SQL without writing boilerplate JDBC code? We will explore a zero cost (both in terms of startup time and runtime overhead), reflection-free, annotation-free, bytecode-manipulation-free, and a type-safe way to write your Persistence Layer in Kotlin.
ORMs are great but not suitable in every situations. We will start by exploring some such situations. We will see how to connect to and execute queries against PostgreSQL in Kotlin without requiring any ORM or boilerplate code. We will be able to write immutable data classes (which may not be possible with ORMs) that will be mapped from database result. We will see how changes in database schema can be detected at compile time leading us towards more type-safe and maintainable codebase.
Bilagi
10/18/2021, 10:51 AMAlina Dolgikh [JB]
Ayush Bansal
07/14/2022, 8:53 AMYashwant Gowla
08/24/2022, 12:54 PMcurioustechizen
09/06/2022, 11:38 AMiGrid
11/30/2022, 2:18 PMPrateek Kocher
12/16/2022, 11:07 AMAnudeep Ananth
10/29/2023, 5:37 PMakshay
01/12/2024, 3:29 PMAyush Bansal
11/03/2024, 3:58 AMmuralimohan962
11/07/2024, 11:43 AMfun isParentHasType(type: Class<*>, value: Any): Any {
val assignableFrom = type::class.java.isAssignableFrom(value::class.java)
return assignableFrom
}
open class A
open class B : A()
open class C : B()
fun main() {
val c = C()
val parentOfType = isParentHasType(A::class.java, c)
val parentHasType2 = isParentHasType(c::class.java, A())
println(parentHasType2)
println(parentOfType)
}
In both these cases I get false returned from isParentHasType function. What’s wrong with my code?akshay
01/13/2025, 5:50 AMpurezen
03/19/2025, 12:33 PMpurezen
03/19/2025, 12:33 PM