0

I would like to add a set of where conditions to all the custom queries in a repository.

public class TransactionEntity {
    
    ...


    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "INPUT_DT")
    Date inputDate;
    
    ...

}

@Repository
public interface TransactionRepository extends JpaRepository<TransactionEntity, String> {

// Custom queries

}

I would like to add fromDate and toDate to every custom query in this repository.

Is there a method to do that.

Muhammed K K
  • 1,100
  • 2
  • 8
  • 19

0 Answers0