質問するログイン新規登録

質問編集履歴

1

追加

2015/11/06 13:59

投稿

MracleTShirt09
MracleTShirt09

スコア13

title CHANGED
File without changes
body CHANGED
@@ -24,4 +24,21 @@
24
24
  上記現象の原因として考えられることは何がありますでしょうか。
25
25
  また、解決方法はどのような手順になりますでしょうか。
26
26
 
27
- ![イメージ説明](299457df886026b27673da081e04289e.png)
27
+ ![イメージ説明](299457df886026b27673da081e04289e.png)
28
+
29
+
30
+
31
+
32
+ 4. persistence.xml
33
+ ----
34
+ <?xml version="1.0" encoding="UTF-8"?>
35
+ <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">
36
+ <persistence-unit name="SampleGiftAppPU" transaction-type="JTA">
37
+ <jta-data-source>jdbc/mysql-sample_db</jta-data-source>
38
+ <exclude-unlisted-classes>false</exclude-unlisted-classes>
39
+ <properties>
40
+ <property name="javax.persistence.schema-generation.database.action" value="create"/>
41
+ </properties>
42
+ </persistence-unit>
43
+ </persistence>
44
+ ----