<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.ApplicationEntity</class>
        <class>org.keycloak.models.jpa.entities.CredentialEntity</class>
        <class>org.keycloak.models.jpa.entities.OAuthClientEntity</class>
        <class>org.keycloak.models.jpa.entities.RealmEntity</class>
        <class>org.keycloak.models.jpa.entities.RequiredCredentialEntity</class>
        <class>org.keycloak.models.jpa.entities.AuthenticationProviderEntity</class>
        <class>org.keycloak.models.jpa.entities.FederationProviderEntity</class>
        <class>org.keycloak.models.jpa.entities.RoleEntity</class>
        <class>org.keycloak.models.jpa.entities.SocialLinkEntity</class>
        <class>org.keycloak.models.jpa.entities.AuthenticationLinkEntity</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>

        <!-- 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.UserSessionEntity</class>
        <class>org.keycloak.models.sessions.jpa.entities.UsernameLoginFailureEntity</class>

        <!-- JpaAuditProvider -->
        <class>org.keycloak.audit.jpa.EventEntity</class>

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