project

open override fun <T : Any> project(type: Class<T>): PanacheQuery<T>

Defines a projection class: the getters, and the public fields, will be used to restrict which fields should be retrieved from the database.

Return

a new query with the same state as the previous one (params, page, range, ...).