Kotlin JDSL
Latest stable version: 3.7.2
What is Kotlin JDSL?
Supports
JPQL
val context = JpqlRenderContext()
val query = jpql {
select(
path(Author::authorId),
).from(
entity(Author::class),
join(BookAuthor::class).on(path(Author::authorId).equal(path(BookAuthor::authorId))),
).groupBy(
path(Author::authorId),
).orderBy(
count(Author::authorId).desc(),
)
}
val `the most prolific author` = entityManager.createQuery(query, context).apply {
maxResults = 1
}Last updated