Skip to content

3.0.0

Compare
Choose a tag to compare
@shouwn shouwn released this 24 Oct 06:24
· 523 commits to main since this release

What's Changed

Features

JPQL

The previous Kotlin JDSL was built using the Criteria API, which limited the queries you could write. However, Kotlin JDSL 3.0.0 has been rebuilt using the JPQL, which breaks this limitation.

Documents

The previous Kotlin JDSL had poor documents and it was difficult to know what features were available. Since Kotlin JDSL 3.0.0, Kotlin JDSL's documentation has been enhanced with a gitbook, and you can easily find the features you want through search.

https://kotlin-jdsl.gitbook.io/docs/

Prepare statement

The previous Kotlin JDSL only supported literal for parameters, so there was no support for prepare statements. Kotlin JDSL 3.0.0 supports bind parameters, so you can use prepare statements. With the support of bind parameters, Kotlin JDSL 3.0.0 uses the bind parameters instead of literal as the default method for rendering parameters.

Breaking changes

DSL

The previous Kotlin JDSL had the problem that queries could be written too leniently, requiring the users to know how to use it. Kotlin JDSL 3.0.0 changes the DSL to a fluent style, which gives users more guidance. This made it impossible to reuse previously written queries. However, because 3.0.0 can be used with 2.0.0, it is possible to write new queries in 3.0.0 and gradually change queries written in 2.0.0 to 3.0.0.

New Contributors

Full Changelog: 2.2.1.RELEASE...3.0.0