From fc966618a662456bbb4201c69d7c61385ce0a56f Mon Sep 17 00:00:00 2001 From: rob bygrave Date: Thu, 10 Jan 2019 14:42:55 +1300 Subject: [PATCH] No effective change - improve javadoc for Query.setInheritType() --- src/main/java/io/ebean/Query.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/main/java/io/ebean/Query.java b/src/main/java/io/ebean/Query.java index bd8d59e43..0c7caabaa 100644 --- a/src/main/java/io/ebean/Query.java +++ b/src/main/java/io/ebean/Query.java @@ -1632,7 +1632,19 @@ public interface Query { Class getBeanType(); /** - * Sets the inherit type. Must be a subtype of getBeanType + * Restrict the query to only return subtypes of the given inherit type. + * + *
{@code
+   *
+   *   List animals =
+   *     new QAnimal()
+   *       .name.startsWith("Fluffy")
+   *       .setInheritType(Cat.class)
+   *       .findList();
+   *
+   * }
+ * + * @param type An inheritance subtype of the */ Query setInheritType(Class type);