add in(subQuery) support for query beans

This commit is contained in:
Ben Kempe
2021-03-01 13:21:05 +01:00
parent e4d0341e67
commit af4f70e3a7
@@ -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);
}
}