<How to join with the same table two times in jOOQ...
# stackoverflow
u
How to join with the same table two times in jOOQ? I have table which have one-to-one relation with another, but there are two of them, src and dst, how to join it right? I did something like that, but not sure this is best practce: val route = tbl.`as`("route") val srcPlace = Tables.PLACE.`as`("srcPlace") val dstPlace = Tables.PLACE.`as`("dstPlace") val records = dsl .select(route.asterisk()) .select(srcPlace.asterisk()) .select(dstPlace.asterisk()) .from(route)...