From fdd9b1905cbaa0146342ca2b37ed2bde96581303 Mon Sep 17 00:00:00 2001 From: rob bygrave Date: Thu, 10 Jan 2019 14:52:55 +1300 Subject: [PATCH] No effective change - improve javadoc for query.exists() and query.setBaseTable() --- src/main/java/io/ebean/Query.java | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/src/main/java/io/ebean/Query.java b/src/main/java/io/ebean/Query.java index 0c7caabaa..bf9717f12 100644 --- a/src/main/java/io/ebean/Query.java +++ b/src/main/java/io/ebean/Query.java @@ -897,17 +897,22 @@ public interface Query { * 'does a row exist in the db' check. *

* - *

Example:

- *
{@code
-   *
-   *   boolean userExists = query().where().eq("email", "rob@foo.com").exists();
-   *
-   * }
- * *

Example using a query bean:

*
{@code
    *
-   *   boolean userExists = new QContact().email.equalTo("rob@foo.com").exists();
+   *   boolean userExists =
+   *     new QContact()
+   *       .email.equalTo("rob@foo.com")
+   *       .exists();
+   *
+   * }
+ * + *

Example:

+ *
{@code
+   *
+   *   boolean userExists = query()
+   *     .where().eq("email", "rob@foo.com")
+   *     .exists();
    *
    * }
* @@ -1623,6 +1628,14 @@ public interface Query { * Typically this is used when a table has partitioning and we wish to specify a specific * partition/table to query against. *

+ *
{@code
+   *
+   *   QOrder()
+   *   .setBaseTable("order_2019_05")
+   *   .status.equalTo(Status.NEW)
+   *   .findList();
+   *
+   * }
*/ Query setBaseTable(String baseTable);