Skip to content

Commit ca494a2

Browse files
committed
Documentation
1 parent c0838a2 commit ca494a2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ want this to look more like true SQL, you can write code like this:
3636
private final WhereApplier commonWhere = where(id, isEqualTo(1)).or(occupation, isNull()).toWhereApplier();
3737
```
3838

39-
This uses a `where` method from `SqlBuilder`.
39+
This uses a `where` method from the `SqlBuilder` class.
4040

4141
### "Having" Clause Support
4242

@@ -59,7 +59,8 @@ as "having" is only needed if there is a "group by".
5959

6060
In the Kotlin DSL, the "group by" restriction is not present because of the free form nature of that DSL - but you
6161
should probably only use "having" if there is a "group by". Also note that the freestanding "and" and "or"
62-
functions in the Kotlin DSL still only apply to the where clause.
62+
functions in the Kotlin DSL still only apply to the where clause. For this reason, the freestanding "and" and "or"
63+
methods are deprecated. Please only use the "and" and "or" methods inside a "where" or "having" lambda.
6364

6465
The pull request for this change is ([#550](https://github.com/mybatis/mybatis-dynamic-sql/pull/550))
6566

@@ -110,6 +111,7 @@ The pull request for this change is ([#591](https://github.com/mybatis/mybatis-d
110111
([#572](https://github.com/mybatis/mybatis-dynamic-sql/pull/572))
111112
5. Add `SqlBuilder.concat` and the equivalent in Kotlin. This is a concatenate function that works on more databases.
112113
([#573](https://github.com/mybatis/mybatis-dynamic-sql/pull/573))
114+
6. Several classes and methods in the Kotlin DSL are deprecated in response to the new "having" support
113115

114116
## Release 1.4.1 - October 7, 2022
115117

0 commit comments

Comments
 (0)