@Entity public class Entity { ... @Transient @Formula(...) Integer totalItems; ... }
The transient formula property is included in the default select when the order is joined.
Note that Ebean actually makes @Transient properties available to be used with @Formula and raw @SqlSelect queries.
So this is why they can be included in a select clause.
Fixed in HEAD.