Skip to content

Commit

Permalink
fix(TransactionRepository): correct entity type to Transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyWu3027 committed Aug 22, 2023
1 parent 5d34b61 commit 0cda417
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import uk.ac.ic.doc.blocc.dashboard.transaction.model.ApprovalTransaction;
import uk.ac.ic.doc.blocc.dashboard.transaction.model.CompositeKey;
import uk.ac.ic.doc.blocc.dashboard.transaction.model.Transaction;

@Repository
public interface TransactionRepository
extends JpaRepository<ApprovalTransaction, CompositeKey> {
extends JpaRepository<Transaction, CompositeKey> {

@Query("SELECT tx FROM Transaction tx WHERE tx.key.containerNum = ?1")
List<Transaction> findAllByContainerNum(int containerNum);
Expand Down

0 comments on commit 0cda417

Please sign in to comment.