diff --git a/src/main/java/com/avaje/ebean/ExpressionList.java b/src/main/java/com/avaje/ebean/ExpressionList.java index 1b1631d62..f546afa84 100644 --- a/src/main/java/com/avaje/ebean/ExpressionList.java +++ b/src/main/java/com/avaje/ebean/ExpressionList.java @@ -351,14 +351,17 @@ public interface ExpressionList extends Serializable { * This returns the list so that add() can be chained. *

* - *
-   * Query<Customer> query = Ebean.createQuery(Customer.class);
+   * 
{@code
+   *
+   * Query query = Ebean.find(Customer.class);
    * query.where()
-   *     .like("name","Rob%")
-   *     .eq("status", Customer.ACTIVE);
-   * List<Customer> list = query.findList();
+   *     .like("name","Rob%")
+   *     .eq("status", Customer.ACTIVE);
+   *
+   * List list = query.findList();
    * ...
-   * 
+ * + * }
*/ ExpressionList add(Expression expr); @@ -439,33 +442,36 @@ public interface ExpressionList extends Serializable { * those options such as case insensitive etc. *

* - *
+   * 
{@code
+   *
    * // create an example bean and set the properties
    * // with the query parameters you want
    * Customer example = new Customer();
-   * example.setName("Rob%");
-   * example.setNotes("%something%");
+   * example.setName("Rob%");
+   * example.setNotes("%something%");
    * 
    * List<Customer> list = Ebean.find(Customer.class).where()
    *     // pass the bean into the where() clause
    *     .exampleLike(example)
    *     // you can add other expressions to the same query
-   *     .gt("id", 2).findList();
+   *     .gt("id", 2).findList();
    * 
-   * 
+ * }
* * Similarly you can create an ExampleExpression * - *
+   * 
{@code
+   *
    * Customer example = new Customer();
-   * example.setName("Rob%");
-   * example.setNotes("%something%");
+   * example.setName("Rob%");
+   * example.setNotes("%something%");
    * 
    * // create a ExampleExpression with more control
    * ExampleExpression qbe = new ExampleExpression(example, true, LikeType.EQUAL_TO).includeZeros();
    * 
-   * List<Customer> list = Ebean.find(Customer.class).where().add(qbe).findList();
-   * 
+ * List list = Ebean.find(Customer.class).where().add(qbe).findList(); + * + * }
*/ ExpressionList exampleLike(Object example); @@ -593,6 +599,14 @@ public interface ExpressionList extends Serializable { * then they are not translated. logical property name names (not fully * qualified) will still be translated to their physical name. *

+ * + *

Example:

+ *
{@code
+   *
+   *   // use a database function
+   *   raw("add_days(orderDate, 10) < ?", someDate)
+   *
+   * }
*/ ExpressionList raw(String raw, Object value); @@ -617,6 +631,12 @@ public interface ExpressionList extends Serializable { * then they are not translated. logical property name names (not fully * qualified) will still be translated to their physical name. *

+ * + *
{@code
+   *
+   *   raw("orderQty < shipQty")
+   *
+   * }
*/ ExpressionList raw(String raw);