mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
No effective change - improve javadoc for Query.setInheritType()
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user