質問編集履歴
1
追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -51,3 +51,37 @@
|
|
51
51
|
|
52
52
|
|
53
53
|

|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
4. persistence.xml
|
64
|
+
|
65
|
+
----
|
66
|
+
|
67
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
68
|
+
|
69
|
+
<persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
|
70
|
+
|
71
|
+
<persistence-unit name="SampleGiftAppPU" transaction-type="JTA">
|
72
|
+
|
73
|
+
<jta-data-source>jdbc/mysql-sample_db</jta-data-source>
|
74
|
+
|
75
|
+
<exclude-unlisted-classes>false</exclude-unlisted-classes>
|
76
|
+
|
77
|
+
<properties>
|
78
|
+
|
79
|
+
<property name="javax.persistence.schema-generation.database.action" value="create"/>
|
80
|
+
|
81
|
+
</properties>
|
82
|
+
|
83
|
+
</persistence-unit>
|
84
|
+
|
85
|
+
</persistence>
|
86
|
+
|
87
|
+
----
|