-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpersistence.xml
51 lines (40 loc) · 2.05 KB
/
persistence.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="https://jakarta.ee/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence https://jakarta.ee/xml/ns/persistence/persistence_3_0.xsd"
version="3.0">
<persistence-unit name="user-store" transaction-type="JTA">
<class>aziz.keycloak.domain.ExternalUserEntity</class>
<class>aziz.keycloak.domain.ExternalUserRoleEntity</class>
<properties>
<property name="hibernate.dialect"
value="org.hibernate.dialect.PostgreSQLDialect" />
<!-- Sets the name of the datasource to be the same as the datasource name in quarkus.properties-->
<property name="hibernate.connection.datasource"
value="user-store" />
<property name="jakarta.persistence.transactionType"
value="JTA" />
<property name="hibernate.hbm2ddl.auto"
value="none" />
<property name="hibernate.show_sql"
value="true" />
</properties>
</persistence-unit>
<persistence-unit name="user-store-2" transaction-type="JTA">
<class>aziz.keycloak.domain.ExternalUserEntity</class>
<class>aziz.keycloak.domain.ExternalUserRoleEntity</class>
<properties>
<property name="hibernate.dialect"
value="org.hibernate.dialect.PostgreSQLDialect" />
<!-- Sets the name of the datasource to be the same as the datasource name in quarkus.properties-->
<property name="hibernate.connection.datasource"
value="user-store" />
<property name="jakarta.persistence.transactionType"
value="JTA" />
<property name="hibernate.hbm2ddl.auto"
value="none" />
<property name="hibernate.show_sql"
value="false" />
</properties>
</persistence-unit>
</persistence>