@Entity("example") class Example { @PrimaryKey Integer a; String b; Time c; } interface ExampleRepository : Repository!Example { @Select Example[] selectAll(); @Insert void insert(Example); @Update void update(Example); @Remove void remove(Example); }
Base interface for repositories. Every repository that implements this interface will be extended by scorpion and its methods implemented. Every method in the interface must have either the attribute @Select, @Insert, @Update or @Remove that indicates which action the repository will perform using the database.