rapho
06/10/2019, 3:20 PMTableA.selectAll().where(TableA.ref1 = object1 and TableA.ref2= object2)
rapho
06/10/2019, 3:28 PMref1.tableA.filter { ref2 != object2 }
But I guess I could also do this with exposedtapac
06/10/2019, 4:44 PMTableA.select { TableA.ref1 eq object1 and (TableA.ref2 eq object2) }
https://github.com/JetBrains/Exposed/wiki/DSL#readrapho
06/10/2019, 4:50 PMeq
, and I dont know why.tapac
06/10/2019, 4:50 PMgame
? If it's Entity then you have to write eq game.id
rapho
06/10/2019, 4:51 PMobject GameAnswers : IntIdTable() {
val game = reference("game", Games)
val user = reference("user", Users)
Thats the tablerapho
06/10/2019, 4:52 PMrapho
06/10/2019, 4:52 PMrapho
06/10/2019, 4:52 PM