https://kotlinlang.org logo
#exposed
Title
# exposed
g

Gunslingor

04/05/2020, 7:21 AM
Doing a composit pk is documented, but how do you do a composite id?
t

tapac

04/06/2020, 7:32 AM
Composite ids is unsupported yet.
g

Gunslingor

04/07/2020, 4:43 AM
Isn't it needed for general join tables? What should the id need to be when you have two keys like that... e.g. user, userAddresses (2 keys), addresses?
t

tapac

04/07/2020, 2:27 PM
You can join such tables, but can't map entities to it.
g

Gunslingor

04/07/2020, 4:22 PM
Which means I can use DSL but not DAO right? still learning and you know your stuff. Not sure I even like DAO, seems useful but not as often and as flexible as DSL... Can DAO do joins? Doing it with DSL was easy to figure out but I only did that after giving up on DAO joins.
g

Gunslingor

04/08/2020, 6:13 PM
Cool... yeah, I realize the reason it wasn't working for me was that I might of been using a non IdTable, lol, oops
5 Views