@@ -36,7 +36,7 @@ want this to look more like true SQL, you can write code like this:
36
36
private final WhereApplier commonWhere = where(id, isEqualTo(1 )). or(occupation, isNull()). toWhereApplier();
37
37
```
38
38
39
- This uses a ` where ` method from ` SqlBuilder ` .
39
+ This uses a ` where ` method from the ` SqlBuilder ` class .
40
40
41
41
### "Having" Clause Support
42
42
@@ -59,7 +59,8 @@ as "having" is only needed if there is a "group by".
59
59
60
60
In the Kotlin DSL, the "group by" restriction is not present because of the free form nature of that DSL - but you
61
61
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.
63
64
64
65
The pull request for this change is ([ #550 ] ( https://github.com/mybatis/mybatis-dynamic-sql/pull/550 ) )
65
66
@@ -110,6 +111,7 @@ The pull request for this change is ([#591](https://github.com/mybatis/mybatis-d
110
111
([ #572 ] ( https://github.com/mybatis/mybatis-dynamic-sql/pull/572 ) )
111
112
5 . Add ` SqlBuilder.concat ` and the equivalent in Kotlin. This is a concatenate function that works on more databases.
112
113
([ #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
113
115
114
116
## Release 1.4.1 - October 7, 2022
115
117
0 commit comments