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);