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

Jeffrey Kwok

03/14/2024, 7:11 PM
Hi all, new to exposed, is there a way to get data from a junction table with the DAO? like in the github example if there’re extra columns in the
StartWarsFilmActors
and in the dao class like:
Copy code
class StarWarsFilm(id: EntityID<Int>) : IntEntity(id) {
    companion object : IntEntityClass<StarWarsFilm>(StarWarsFilms)
    ...
    var actors by Actor via StarWarsFilmActors
    var extraDataFromJunctionTable // ?
    ...
}
c

Chantal Loncle

03/20/2024, 5:54 PM
Hi @Jeffrey Kwok This is a known issue so I've created a new YouTrack ticket to bring more attention to it (please feel free to upvote and track). The ticket also has links to relevant issue discussions and will be updated as options are investigated (particularly as we work towards supporting composite primary keys with DAO).
🙏🏼 1