File tree 2 files changed +4
-2
lines changed
spring-data-relational/src/main/java/org/springframework/data/relational/core/sql
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 24
24
* </p>
25
25
*
26
26
* @author Mark Paluch
27
+ * @author Meng Zuozhu
27
28
* @since 2.2
28
29
*/
29
30
public class Between extends AbstractSegment implements Condition {
@@ -92,6 +93,6 @@ public Between not() {
92
93
93
94
@ Override
94
95
public String toString () {
95
- return column + " BETWEEN " + begin + " AND " + end ;
96
+ return column + ( negated ? " NOT" : "" ) + " BETWEEN " + begin + " AND " + end ;
96
97
}
97
98
}
Original file line number Diff line number Diff line change 23
23
* Results in a rendered condition: {@code <left> LIKE <right>}.
24
24
* </p>
25
25
* @author Mark Paluch
26
+ * @author Meng Zuozhu
26
27
* @since 1.1
27
28
*/
28
29
public class Like extends AbstractSegment implements Condition {
@@ -80,6 +81,6 @@ public Like not() {
80
81
81
82
@ Override
82
83
public String toString () {
83
- return left + " LIKE " + right ;
84
+ return left + ( negated ? " NOT" : "" ) + " LIKE " + right ;
84
85
}
85
86
}
You can’t perform that action at this time.
0 commit comments