File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
spring-data-relational/src/main/java/org/springframework/data/relational/core/sql Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 2323 * Results in a rendered condition: {@code <left> BETWEEN <begin> AND <end>}.
2424 *
2525 * @author Mark Paluch
26+ * @author Meng Zuozhu
2627 * @since 2.2
2728 */
2829public class Between extends AbstractSegment implements Condition {
@@ -91,6 +92,6 @@ public Between not() {
9192
9293 @ Override
9394 public String toString () {
94- return column + " BETWEEN " + begin + " AND " + end ;
95+ return column + ( negated ? " NOT" : "" ) + " BETWEEN " + begin + " AND " + end ;
9596 }
9697}
Original file line number Diff line number Diff line change 2323 * Results in a rendered condition: {@code <left> LIKE <right>}.
2424 *
2525 * @author Mark Paluch
26+ * @author Meng Zuozhu
2627 * @since 1.1
2728 */
2829public class Like extends AbstractSegment implements Condition {
@@ -80,6 +81,6 @@ public Like not() {
8081
8182 @ Override
8283 public String toString () {
83- return left + " LIKE " + right ;
84+ return left + ( negated ? " NOT" : "" ) + " LIKE " + right ;
8485 }
8586}
You can’t perform that action at this time.
0 commit comments