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

Matt

10/02/2023, 12:43 AM
Hello! I am playing around with some more complex tables and I was wondering if it is possible to do something like Hibernate does with
embededid
where you can have the entity key be multiple columns I tried a few things and came up with a possible half done way? https://pastes.dev/P9yCBZmeTz I am pretty sure I am doing something very wrong and I ain't even sure if it is possible, it's not that big of a deal if it isn't but I'd love if it was! Reading the docs of the
IdTable
makes me thing that I am very wrong 😅
c

Chantal Loncle

10/03/2023, 2:34 AM
Hi 👋 Exposed does not currently support composite primary keys when using DAO entities, but it is a known feature request. As the team works through the current backlog, this issue is rising in priority and the options for uncoupling
EntityID
from its current implementation will certainly be addressed. Here's a link to the YouTrack issue if you're interested in tracking its eventual progress.
m

Matt

10/03/2023, 2:48 PM
Awesome! Looking forwards to it, I'll definitely keep an eye on the issue. Thank you!