persistence.xml

30 lines | 1.656 kB Blame History Raw Download
<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-identity-store" transaction-type="RESOURCE_LOCAL">
        <provider>org.hibernate.ejb.HibernatePersistence</provider>
        
        <class>org.picketlink.idm.jpa.schema.IdentityObject</class>
        <class>org.picketlink.idm.jpa.schema.PartitionObject</class>
        <class>org.picketlink.idm.jpa.schema.RelationshipObject</class>
        <class>org.picketlink.idm.jpa.schema.RelationshipIdentityObject</class>
        <class>org.picketlink.idm.jpa.schema.RelationshipIdentityWeakObject</class>
        <class>org.picketlink.idm.jpa.schema.RelationshipObjectAttribute</class>
        <class>org.picketlink.idm.jpa.schema.IdentityObjectAttribute</class>
        <class>org.picketlink.idm.jpa.schema.CredentialObject</class>
        <class>org.picketlink.idm.jpa.schema.CredentialObjectAttribute</class>
        
        <properties>
            <property name="hibernate.connection.url" value="jdbc:h2:mem:test"/>
            <property name="hibernate.connection.driver_class" value="org.h2.Driver"/>
            <property name="hibernate.connection.username" value="sa"/>
            <property name="hibernate.connection.password" value=""/>
            <property name="hibernate.hbm2ddl.auto" value="create-drop" />
			<property name="hibernate.show_sql" value="false" />
			<property name="hibernate.format_sql" value="false" />
        </properties>
    </persistence-unit>

</persistence>