@Override
    public Collection<? extends PasswordHistoryEntity> fetch(final String username) {
        return this.entityManager.createQuery(SELECT_QUERY.concat("WHERE p.username = :username"), JdbcPasswordHistoryEntity.class)
            .setParameter("username", username)
            .getResultList();
    }
This is {@link JdbcPasswordHistoryService}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-pm-jdbc/src/main/java/org/apereo/cas/pm/jdbc/JdbcPasswordHistoryService.java