Guarantee poll

This commit is contained in:
M66B
2021-07-30 21:24:48 +02:00
parent 7962afc2e6
commit 147290953d
3 changed files with 23 additions and 14 deletions

View File

@@ -103,6 +103,9 @@ public interface DaoOperation {
@Query("SELECT * FROM operation WHERE account = :account AND name = :name")
List<EntityOperation> getOperations(long account, String name);
@Query("SELECT * FROM operation WHERE folder = :folder AND name = :name")
List<EntityOperation> getOperationsByFolder(long folder, String name);
@Query("SELECT * FROM operation WHERE id = :id")
EntityOperation getOperation(long id);