Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
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.