/** * Creates a ColumnSelect that will fetch single property that can be resolved * against a given {@link ObjEntity} class. * * @param entityType base persistent class that will be used as a root for this query * @param column single column to select */ public static <E> ColumnSelect<E> columnQuery(Class<?> entityType, Property<E> column) { return new ColumnSelect<>().entityType(entityType).column(column); }
/** * Creates a ColumnSelect that will fetch multiple columns of a given {@link ObjEntity} * * @param entityType base persistent class that will be used as a root for this query * @param firstColumn column to select * @param otherColumns columns to select */ public static ColumnSelect<Object[]> columnQuery(Class<?> entityType, Property<?> firstColumn, Property<?>... otherColumns) { return new ColumnSelect<Object[]>().entityType(entityType).columns(firstColumn, otherColumns); }