All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.persistence-h2.xml Maven / Gradle / Ivy

There is a newer version: 3.12.2
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0"
			 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_2_0.xsd">
	<persistence-unit name="users"
		transaction-type="RESOURCE_LOCAL">

		<provider>org.hibernate.ejb.HibernatePersistence</provider>

		<class>de.alpharogroup.user.entities.Permissions</class>
		<class>de.alpharogroup.user.entities.RelationPermissions</class>
		<class>de.alpharogroup.user.entities.ResetPasswords</class>
		<class>de.alpharogroup.user.entities.Roles</class>
		<class>de.alpharogroup.user.entities.Users</class>
		<class>de.alpharogroup.user.entities.UserTokens</class>

        <properties>
			<property name="hibernate.connection.driver_class" value="org.h2.Driver" />
			<property name="hibernate.connection.url" value="jdbc:h2:mem:~/users;USER=SA;PASSWORD=;MODE=PostgreSQL;DB_CLOSE_ON_EXIT=FALSE;DB_CLOSE_DELAY=-1"/>
			<property name="hibernate.connection.user" value="sa" />
			<property name="hibernate.connection.password" value="" />
			<property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect" />
            <property name="hibernate.show_sql" value="true"/>
            <property name="hibernate.format_sql" value="true"/>
            <property name="hibernate.hbm2ddl.auto" value="create"/>
            <property name="hibernate.event.merge.entity_copy_observer" value="allow"/>
        </properties>
	</persistence-unit>
</persistence>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy