@query with generics code example Example: @query with generics @Query("Select t.type from #{#entityName} t")