Justin Xu
10/13/2022, 1:19 AMUser
model object to be inserted into a database. I want to insert these into various databases using a Repository pattern, but the User
has an id
field that is generated differently for each database I use. Is there a way to defer the definition of the id
type and a generateId()
function until the actual creation of the User
object in Kotlin? Thanksgildor
10/13/2022, 4:14 AMCasey Brooks
10/13/2022, 4:37 AMJustin Xu
10/13/2022, 4:54 AMgildor
10/13/2022, 6:09 AMMatteo Mirk
10/13/2022, 9:41 AM