File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -29,12 +29,12 @@ Define a Persistence Unit:
29
29
``` xml
30
30
<persistence xmlns =" http://java.sun.com/xml/ns/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" >
31
31
<persistence-unit name =" microprofile-demo" transaction-type =" JTA" >
32
- <jta-data-source >jdbc/mariadb-database</jta-data-source >
32
+ <jta-data-source >jdbc/mariadb-database</jta-data-source >
33
33
<exclude-unlisted-classes >false</exclude-unlisted-classes >
34
- <properties >
34
+ <properties >
35
35
<property name =" eclipselink.target-database" value =" MySQL" /> <!-- EclipseLink JPA (default JPA implementation in Glassfish) requires this -->
36
- </properties >
37
- </persistence-unit >
36
+ </properties >
37
+ </persistence-unit >
38
38
</persistence >
39
39
```
40
40
@@ -95,9 +95,9 @@ Configure the database connection in the **server.xml** file:
95
95
<dataSource id =" DefaultDataSource" jndiName =" jdbc/mariadb-database" type =" java.sql.Driver" >
96
96
<jdbcDriver libraryRef =" jdbcLib" />
97
97
<properties
98
- URL=" jdbc:mariadb://localhost:3306/microprofile_demo"
99
- user=" user"
100
- password=" password"
98
+ URL=" jdbc:mariadb://localhost:3306/microprofile_demo"
99
+ user=" user"
100
+ password=" password"
101
101
/>
102
102
</dataSource >
103
103
```
You can’t perform that action at this time.
0 commit comments