Stark,
Good question. There are a few option constants for you to use. Unfortunately this feature is not in QueryBuilder, but you can indirectly use it with TableGateway class:
TableGateway tg = ActiveRecordUtil.getGateway(Employee.class);
List<Employee> employees = tg.findAll(String conditionsSQL, Map<String, Object> conditionsSQLData, String options);
In the options string or map, you can use one of the following options:
Use "columns" option (ActiveRecordConstants.key_columns)
Use "ex_columns" option (ActiveRecordConstants.key_ex_columns)
Use "finder_sql" option (ActiveRecordConstants.key_finder_sql)
See JavaDoc of ActiveRecordConstants class for the above options.
Here is an example:
List<Employee> employees = tg.findAll(null, null, "columns: id, first_name, last_name, salary; order_by: first_name, salary DESC");
The employee instance in the returned employees list should only have values for columns id, first_name, last_name, and salary. Employee's manager ID column is ignored.
Hope this works.
John