Skip to content

Commit 89ad312

Browse files
committed
Add persistence.xml
1 parent b3f6e9f commit 89ad312

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Diff for: src/main/resources/META-INF/persistence.xml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<persistence xmlns="https://jakarta.ee/xml/ns/persistence"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence https://jakarta.ee/xml/ns/persistence/persistence_3_2.xsd"
4+
version="3.2">
5+
6+
<persistence-unit name="MyPersistenceUnit">
7+
<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
8+
<jta-data-source>java:comp/DefaultDataSource</jta-data-source>
9+
<properties>
10+
<property name="jakarta.persistence.schema-generation.database.action" value="create"/>
11+
<property name="hibernate.show_sql" value="true"/>
12+
<property name="hibernate.allow_update_outside_transaction" value="true"/>
13+
<property name="hibernate.enhancer.enableDirtyTracking" value="false"/>
14+
<property name="hibernate.enhancer.enableLazyInitialization" value="false"/>
15+
<property name="hibernate.dialect" value="org.hibernate.community.dialect.DerbyDialect"/>
16+
</properties>
17+
</persistence-unit>
18+
19+
</persistence>

0 commit comments

Comments
 (0)