This link you could find query methods to add queries that are not covered by the common jpa repository or with the support creation.
Check 2.3.4 Using @Query in JPA repositories
Using Query methods you can do that, try something like this.
public interface UserRepository extends JpaRepository<User, Long> {
@Query(value = "SELECT * FROM USERS WHERE active_from > :?0 AND active_to < :?0 )
List<User> findBetweenDate(String currentDate);
}