34 lines
2.0 KiB
Django/Jinja
34 lines
2.0 KiB
Django/Jinja
<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"
|
|
version="2.0" xmlns="http://java.sun.com/xml/ns/persistence">
|
|
|
|
<!-- change here if you want name of unit different -->
|
|
<persistence-unit name="authorization" transaction-type="RESOURCE_LOCAL">
|
|
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
|
|
|
|
<!-- Converters -->
|
|
<class>org.gcube.common.authorizationservice.persistence.entities.converters.StringListConverter</class>
|
|
|
|
|
|
<!-- Entities -->
|
|
<class>org.gcube.common.authorizationservice.persistence.entities.AuthorizationEntity</class>
|
|
<class>org.gcube.common.authorizationservice.persistence.entities.ServiceAuthorizationEntity</class>
|
|
<class>org.gcube.common.authorizationservice.persistence.entities.UserAuthorizationEntity</class>
|
|
<class>org.gcube.common.authorizationservice.persistence.entities.ExternalServiceAuthorizationEntity</class>
|
|
<class>org.gcube.common.authorizationservice.persistence.entities.NodeAuthorizationEntity</class>
|
|
<class>org.gcube.common.authorizationservice.persistence.entities.PolicyEntity</class>
|
|
<class>org.gcube.common.authorizationservice.persistence.entities.ServicePolicyEntity</class>
|
|
<class>org.gcube.common.authorizationservice.persistence.entities.UserPolicyEntity</class>
|
|
<properties>
|
|
<property name="javax.persistence.jdbc.url"
|
|
value="jdbc:postgresql://{{ auth_postgresql_host }}/{{ psql_db_name }}" />
|
|
<property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver" />
|
|
<property name="javax.persistence.jdbc.user" value="{{ psql_db_user }}" />
|
|
<property name="javax.persistence.jdbc.password" value="{{ authorization_db_pwd }}" />
|
|
<property name="eclipselink.ddl-generation" value="create-tables" />
|
|
<property name="eclipselink.ddl-generation.output-mode"
|
|
value="database" />
|
|
</properties>
|
|
</persistence-unit>
|
|
</persistence>
|