No effective change - improve javadoc for Query.setInheritType()

This commit is contained in:
rob bygrave
2019-01-10 14:42:55 +13:00
parent 669ba7837a
commit fc966618a6
+13 -1
View File
@@ -1632,7 +1632,19 @@ public interface Query<T> {
Class<T> getBeanType();
/**
* Sets the inherit type. Must be a subtype of getBeanType
* Restrict the query to only return subtypes of the given inherit type.
*
* <pre>{@code
*
* List<Animal> animals =
* new QAnimal()
* .name.startsWith("Fluffy")
* .setInheritType(Cat.class)
* .findList();
*
* }</pre>
*
* @param type An inheritance subtype of the
*/
Query<T> setInheritType(Class<? extends T> type);