Skip to content
Snippets Groups Projects
Commit 9b8012c8 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

Fixed #327 - TransactionRepository --> Transaction is a keyword and case sensitive

parent 7203215d
No related branches found
No related tags found
No related merge requests found
Pipeline #228 passed
......@@ -15,6 +15,6 @@ public interface TransactionRepository extends JpaRepository<Transaction, Intege
List<Transaction> findAllByAccount(Account account);
@Query(value = "SELECT SUM(t.amount) FROM TRANSACTION as t WHERE t.account_id = ?1 AND t.date BETWEEN ?2 AND ?3", nativeQuery = true)
@Query(value = "SELECT SUM(t.amount) FROM `transaction` as t WHERE t.account_id = ?1 AND t.date BETWEEN ?2 AND ?3", nativeQuery = true)
Integer getRest(int accountID, String startDate, String endDate);
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment