Annotation Interface TwiceDBProject


@Documented @Retention(RUNTIME) @Target(FIELD) public @interface TwiceDBProject
An annotation that causes the annotated field to be projected and to be aggregatable. For example, the following class shows both an indexed field annotated with @TwiceDBIndex and an unindexed field:
     public class Example {
         // projectedIntegers of Examples may be aggregated.
         @TwiceDBProject public Integer projectedInteger;
         // unprojectedIntegers of Examples may not be aggregated.
         public String unprojectedInteger;
     }
 
The following types can be aggregated:

double and Double

float and Float

int and Integer

long and Long