diff --git a/ebean-api/src/main/java/io/ebean/ExpressionFactory.java b/ebean-api/src/main/java/io/ebean/ExpressionFactory.java index 3bcd5cb39..d8f047908 100644 --- a/ebean-api/src/main/java/io/ebean/ExpressionFactory.java +++ b/ebean-api/src/main/java/io/ebean/ExpressionFactory.java @@ -181,6 +181,23 @@ public interface ExpressionFactory { */ Expression inRangeWith(String lowProperty, String highProperty, Object value); + /** + * A Property is in Range between 2 properties. + * + *
{@code
+ *
+ * .orderDate.inRangeWith(QOrder.Alias.product.startDate, QOrder.Alias.product.endDate)
+ *
+ * // which equates to
+ * product.startDate <= orderDate and (orderDate < product.endDate or product.endDate is null)
+ *
+ * }
+ *
+ *