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 2424 * </p>
2525 *
2626 * @author Mark Paluch
27+ * @author Meng Zuozhu
2728 * @since 2.2
2829 */
2930public class Between extends AbstractSegment implements Condition {
@@ -92,6 +93,6 @@ public Between not() {
9293
9394 @ Override
9495 public String toString () {
95- return column + " BETWEEN " + begin + " AND " + end ;
96+ return column + ( negated ? " NOT" : "" ) + " BETWEEN " + begin + " AND " + end ;
9697 }
9798}
Original file line number Diff line number Diff line change 2323 * Results in a rendered condition: {@code <left> LIKE <right>}.
2424 * </p>
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