Criteria Container Filter Columns Right away

When using the Criteria Container Add-on, how can i filter the query so that i select the columns i want right away instead of selecting all the columns and just changing what is visible in the table afterwards.

In other words, i have in the example below a container defineQuery and i want to select name id … and avoid running a select * ?

This is a JPA issue. JPA Criteria queries fetch entities, i.e. Java objects. Most of the time, the Java object is a table (or a join of tables), so in order the create the Java object, the persistance layer (Hibernate, for example) will fetch the whole row.