| .. | .. |
|---|
| 1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
|---|
| 2 | | -<persistence version="2.0" |
|---|
| 3 | | - xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|---|
| 4 | | - xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"> |
|---|
| 5 | | - <persistence-unit name="localdb" transaction-type="RESOURCE_LOCAL"> |
|---|
| 6 | | - <description>SeCuris LocalDB</description> |
|---|
| 7 | | - <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider> |
|---|
| 8 | | - <non-jta-data-source>java:comp/env/SeCurisDS</non-jta-data-source> |
|---|
| 9 | | - <shared-cache-mode>NONE</shared-cache-mode> |
|---|
| 10 | | - <properties> |
|---|
| 11 | | - <property name="hibernate.cache.provider_class" value="org.hibernate.cache.internal.NoCachingRegionFactory"/> |
|---|
| 12 | | - <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5Dialect" /> |
|---|
| 13 | | - <!-- <property name="hibernate.connection.datasource" value="java:comp/env/jdbc/SeCurisDS" /> --> |
|---|
| 2 | +<persistence version="3.0" |
|---|
| 3 | + xmlns="https://jakarta.ee/xml/ns/persistence" |
|---|
| 4 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|---|
| 5 | + xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence https://jakarta.ee/xml/ns/persistence/persistence_3_0.xsd"> |
|---|
| 14 | 6 | |
|---|
| 15 | | - <property name="hibernate.cache.use_second_level_cache" value="false" /> |
|---|
| 16 | | - <!-- <property name="hibernate.show_sql" value="true" /> --> |
|---|
| 17 | | - |
|---|
| 18 | | - <property name="hibernate.format_sql" value="false"/> |
|---|
| 19 | | - </properties> |
|---|
| 7 | + <persistence-unit name="localdb" transaction-type="RESOURCE_LOCAL"> |
|---|
| 8 | + <description>SeCuris LocalDB</description> |
|---|
| 9 | + <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider> |
|---|
| 10 | + <non-jta-data-source>java:comp/env/SeCurisDS</non-jta-data-source> |
|---|
| 11 | + <shared-cache-mode>NONE</shared-cache-mode> |
|---|
| 20 | 12 | |
|---|
| 21 | | - </persistence-unit> |
|---|
| 13 | + <properties> |
|---|
| 14 | + <property name="hibernate.cache.region.factory_class" value="org.hibernate.cache.internal.NoCachingRegionFactory"/> |
|---|
| 15 | + <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/> |
|---|
| 16 | + <property name="hibernate.cache.use_second_level_cache" value="false"/> |
|---|
| 17 | + <property name="hibernate.format_sql" value="false"/> |
|---|
| 18 | + </properties> |
|---|
| 19 | + </persistence-unit> |
|---|
| 22 | 20 | </persistence> |
|---|