|
43 | 43 | * <pre>{@code
|
44 | 44 | * CartQueryBuilderDsl.of().id().is("abc");
|
45 | 45 | * CustomerQueryBuilderDsl.of().dateOfBirth().is(LocalDate.parse("2018-10-12"));
|
46 |
| - * TaxRateQueryBuilderDsl.of().amount().is(10.0); |
| 46 | + * TaxRateQueryBuilderDsl.of().amount().is(0.19); |
47 | 47 | * }</pre>
|
48 | 48 | *
|
49 | 49 | * <h5>Logical Operators</h5>
|
50 | 50 | * <pre>{@code
|
51 | 51 | * CartQueryBuilderDsl.of().id().is("abc").not();
|
52 |
| - * CartQueryBuilderDsl.of().id().is("abc").and(p -> p.id().is("def")); |
53 |
| - * CartQueryBuilderDsl.of().id().is("abc").or(p -> p.id().is("def")); |
| 52 | + * CartQueryBuilderDsl.of().id().is("abc").and(p -> p.customerId().is("def")); |
| 53 | + * CartQueryBuilderDsl.of().id().is("abc").or(p -> p.customerId().is("def")); |
54 | 54 | * }</pre>
|
55 | 55 | *
|
56 | 56 | * <h5>Range Comparisons</h5>
|
57 | 57 | * <pre>{@code
|
58 | 58 | * CartQueryBuilderDsl.of().version().isLessThan(10L);
|
59 | 59 | * CartQueryBuilderDsl.of().version().isGreaterThan(10L);
|
60 |
| - * TaxRateQueryBuilderDsl.of().amount().isLessThan(10.0); |
| 60 | + * TaxRateQueryBuilderDsl.of().amount().isLessThan(0.19); |
61 | 61 | * CustomerQueryBuilderDsl.of().dateOfBirth().isGreaterThan(LocalDate.parse("2018-10-12"));
|
62 | 62 | * }</pre>
|
63 | 63 | *
|
64 | 64 | * <h5>Collection Queries</h5>
|
65 | 65 | * <pre>{@code
|
66 | 66 | * CartQueryBuilderDsl.of().key().isIn(Arrays.asList("foo", "bar"));
|
67 |
| - * TaxRateQueryBuilderDsl.of().amount().isIn(Arrays.asList(10.0, 20.0)); |
| 67 | + * TaxRateQueryBuilderDsl.of().amount().isIn(Arrays.asList(0.19, 0.20)); |
68 | 68 | * }</pre>
|
69 | 69 | *
|
70 | 70 | * <h5>Nested Queries</h5>
|
|
79 | 79 | * CartQueryBuilderDsl.of().key().isDefined();
|
80 | 80 | * CartQueryBuilderDsl.of().key().isNotDefined();
|
81 | 81 | * CartQueryBuilderDsl.of().lineItems().isEmpty();
|
82 |
| - * TypeQueryBuilderDsl.of().resourceTypeIds().containsAnyVar("foo"); |
| 82 | + * TypeQueryBuilderDsl.of().resourceTypeIds().containsAnyVar("approval-flow"); |
83 | 83 | * }</pre>
|
84 | 84 | *
|
85 | 85 | *
|
|
0 commit comments