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.