private Class<? extends SamlIdPMetadataDocument> getEntityClass() {
        if (isOracle()) {
            return OracleSamlIdPMetadataDocument.class;
        }
        if (isMySql()) {
            return MySQLSamlIdPMetadataDocument.class;
        }
        if (isPostgres()) {
            return PostgresSamlIdPMetadataDocument.class;
        }
        return JpaSamlIdPMetadataDocument.class;
    }
This is {@link JpaSamlIdPMetadataDocumentFactory}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-saml-idp-metadata-jpa/src/main/java/org/apereo/cas/support/saml/idp/metadata/jpa/JpaSamlIdPMetadataDocumentFactory.java