Created
February 11, 2019 18:10
-
-
Save pjagielski/52cd37ff619c97b6acae48b773e8a8e4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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