@Override
    public Collection<? extends OneTimeTokenAccount> load() {
        val results = entityManager.createQuery("SELECT r FROM "
            + ENTITY_NAME + " r", JpaGoogleAuthenticatorAccount.class).getResultList();
        return results.stream()
            .map(account -> {
                entityManager.detach(account);
                return decode(account);
            })
            .filter(Objects::nonNull)
            .collect(Collectors.toList());
    }
This is {@link JpaGoogleAuthenticatorTokenCredentialRepository} that stores gauth data into a RDBMS database.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-gauth-jpa/src/main/java/org/apereo/cas/gauth/credential/JpaGoogleAuthenticatorTokenCredentialRepository.java