<persistence xmlns="http://java.sun.com/xml/ns/persistence"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
    version="1.0">
    <persistence-unit name="keycloak-default" transaction-type="RESOURCE_LOCAL">
        <class>org.keycloak.models.jpa.entities.ClientEntity</class>
        <class>org.keycloak.models.jpa.entities.CredentialEntity</class>
        <class>org.keycloak.models.jpa.entities.RealmEntity</class>
        <class>org.keycloak.models.jpa.entities.RealmAttributeEntity</class>
        <class>org.keycloak.models.jpa.entities.RequiredCredentialEntity</class>
        <class>org.keycloak.models.jpa.entities.UserFederationProviderEntity</class>
        <class>org.keycloak.models.jpa.entities.UserFederationMapperEntity</class>
        <class>org.keycloak.models.jpa.entities.RoleEntity</class>
        <class>org.keycloak.models.jpa.entities.FederatedIdentityEntity</class>
        <class>org.keycloak.models.jpa.entities.MigrationModelEntity</class>
        <class>org.keycloak.models.jpa.entities.UserEntity</class>
        <class>org.keycloak.models.jpa.entities.UserRequiredActionEntity</class>
        <class>org.keycloak.models.jpa.entities.UserAttributeEntity</class>
        <class>org.keycloak.models.jpa.entities.UserRoleMappingEntity</class>
        <class>org.keycloak.models.jpa.entities.ScopeMappingEntity</class>
        <class>org.keycloak.models.jpa.entities.IdentityProviderEntity</class>
        <class>org.keycloak.models.jpa.entities.IdentityProviderMapperEntity</class>
        <class>org.keycloak.models.jpa.entities.ClientIdentityProviderMappingEntity</class>
        <class>org.keycloak.models.jpa.entities.ProtocolMapperEntity</class>
        <class>org.keycloak.models.jpa.entities.UserConsentEntity</class>
        <class>org.keycloak.models.jpa.entities.UserConsentRoleEntity</class>
        <class>org.keycloak.models.jpa.entities.UserConsentProtocolMapperEntity</class>
        <class>org.keycloak.models.jpa.entities.AuthenticationFlowEntity</class>
        <class>org.keycloak.models.jpa.entities.AuthenticationExecutionEntity</class>
        <class>org.keycloak.models.jpa.entities.AuthenticatorConfigEntity</class>
        <class>org.keycloak.models.jpa.entities.RequiredActionProviderEntity</class>

        <!-- JpaUserSessionProvider -->
        <class>org.keycloak.models.sessions.jpa.entities.ClientSessionEntity</class>
        <class>org.keycloak.models.sessions.jpa.entities.ClientSessionRoleEntity</class>
        <class>org.keycloak.models.sessions.jpa.entities.ClientSessionAuthStatusEntity</class>
        <class>org.keycloak.models.sessions.jpa.entities.ClientSessionProtocolMapperEntity</class>
        <class>org.keycloak.models.sessions.jpa.entities.ClientSessionNoteEntity</class>
        <class>org.keycloak.models.sessions.jpa.entities.ClientUserSessionNoteEntity</class>
        <class>org.keycloak.models.sessions.jpa.entities.UserSessionNoteEntity</class>
        <class>org.keycloak.models.sessions.jpa.entities.UserSessionEntity</class>
        <class>org.keycloak.models.sessions.jpa.entities.UsernameLoginFailureEntity</class>

        <!-- JpaAuditProviders -->
        <class>org.keycloak.events.jpa.EventEntity</class>
        <class>org.keycloak.events.jpa.AdminEventEntity</class>
        
        <exclude-unlisted-classes>true</exclude-unlisted-classes>

        <properties>
            <property name="jboss.as.jpa.managed" value="false"/>
        </properties>
    </persistence-unit>
</persistence>
