Java Persistence/Ebean/Aggregation - Group By

From Wikibooks, open books for an open world
< Java Persistence‎ | Ebean
Jump to: navigation, search

There are 3 main ways you can do "Aggregation" type queries (with GROUP BY and HAVING clauses).

  1. SQL
  2. @SqlSelect - Report Bean
  3. @SqlSelect - Normal Bean
  4. @Formula