mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
add in(subQuery) support for query beans
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package io.ebean.typequery;
|
||||
|
||||
import io.ebean.Query;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
/**
|
||||
@@ -224,4 +226,25 @@ public abstract class PBaseValueEqual<R, T> extends TQPropertyBase<R> {
|
||||
expr().in(_name, values);
|
||||
return _root;
|
||||
}
|
||||
|
||||
/**
|
||||
* Is in the result of a subquery.
|
||||
*
|
||||
* @param subQuery values provided by a subQuery
|
||||
* @return the root query bean instance
|
||||
*/
|
||||
public final R in(Query<?> subQuery) {
|
||||
expr().in(_name, subQuery);
|
||||
return _root;
|
||||
}
|
||||
|
||||
/**
|
||||
* Is in the result of a subquery. Synonym for in().
|
||||
*
|
||||
* @param subQuery values provided by a subQuery
|
||||
* @return the root query bean instance
|
||||
*/
|
||||
public final R isIn(Query<?> subQuery) {
|
||||
return in(subQuery);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user