Select

Indicates that one or more entities will be selected from the database. The return type of a method marked with the @Select atribute can be either T or T[], where T is the entity specified in the repository's declaration.

Examples

interface ExampleRepository : Repository!Example {

   @Select
   T[] selectAll();

   @Select
   T selectOne(Integer id);

}

Meta