Skip to content

Instantly share code, notes, and snippets.

@pjagielski
Created February 11, 2019 18:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pjagielski/52cd37ff619c97b6acae48b773e8a8e4 to your computer and use it in GitHub Desktop.
Save pjagielski/52cd37ff619c97b6acae48b773e8a8e4 to your computer and use it in GitHub Desktop.
val ArticleWithTags = (ArticleTable leftJoin ArticleTagTable leftJoin TagTable)
override fun findBy(articleId: ArticleId) =
ArticleWithTags
.select { ArticleTable.id eq articleId }
.toArticles()
.singleOrNull()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment