Skip to content

Commit b5f76a5

Browse files
committed
add some comments to persistence.xml
1 parent 150738d commit b5f76a5

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

example/src/main/resources/META-INF/persistence.xml

+12-2
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,33 @@
99
<class>org.hibernate.example.reactive.Book</class>
1010

1111
<properties>
12+
13+
<!-- PostgreSQL -->
1214
<property name="javax.persistence.jdbc.url"
1315
value="jdbc:postgresql://localhost:5432/hreact"/>
16+
17+
<!-- MySQL -->
1418
<!--property name="javax.persistence.jdbc.url"
1519
value="jdbc:mysql://localhost:3306/hreact"/-->
1620

21+
<!-- Credentials -->
1722
<property name="javax.persistence.jdbc.user"
1823
value="hreact"/>
1924
<property name="javax.persistence.jdbc.password"
2025
value="hreact"/>
2126

27+
<!-- The Vert.x SQL Client connection pool size -->
2228
<property name="hibernate.connection.pool_size"
2329
value="10"/>
2430

25-
<property name="javax.persistence.schema-generation.database.action" value="drop-and-create"/>
31+
<!-- Automatic schema export -->
32+
<property name="javax.persistence.schema-generation.database.action"
33+
value="drop-and-create"/>
2634

27-
<!--property name="hibernate.show_sql" value="true"/-->
35+
<!-- SQL statement logging -->
2836
<property name="hibernate.format_sql" value="true"/>
37+
<!--property name="hibernate.show_sql" value="true"/-->
38+
2939
</properties>
3040

3141
</persistence-unit>

hibernate-reactive-core/src/main/java/org/hibernate/reactive/boot/impl/ReactiveTypeContributor.java

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/* Hibernate, Relational Persistence for Idiomatic Java
2+
*
3+
* SPDX-License-Identifier: LGPL-2.1-or-later
4+
* Copyright: Red Hat Inc. and Hibernate Authors
5+
*/
16
package org.hibernate.reactive.boot.impl;
27

38
import org.hibernate.boot.model.TypeContributions;

0 commit comments

Comments
 (0)