浏览代码

changed the application properties

Chad 6 年前
父节点
当前提交
95520e3d8a

+ 0
- 1
ZipTeamOrange-server/src/main/java/ZipTeamOrange/chat/Chat.java 查看文件

@@ -2,7 +2,6 @@ package ZipTeamOrange.chat;
2 2
 
3 3
 import ZipTeamOrange.message.Message;
4 4
 import ZipTeamOrange.user.User;
5
-
6 5
 import javax.persistence.*;
7 6
 import java.util.Set;
8 7
 

+ 0
- 1
ZipTeamOrange-server/src/main/java/ZipTeamOrange/message/Message.java 查看文件

@@ -2,7 +2,6 @@ package ZipTeamOrange.message;
2 2
 
3 3
 import ZipTeamOrange.chat.Chat;
4 4
 import ZipTeamOrange.user.User;
5
-
6 5
 import javax.persistence.*;
7 6
 
8 7
 @Entity

+ 1
- 2
ZipTeamOrange-server/src/main/java/ZipTeamOrange/user/User.java 查看文件

@@ -2,7 +2,6 @@ package ZipTeamOrange.user;
2 2
 
3 3
 import ZipTeamOrange.chat.Chat;
4 4
 import ZipTeamOrange.message.Message;
5
-
6 5
 import javax.persistence.*;
7 6
 import java.util.Set;
8 7
 
@@ -24,7 +23,7 @@ public class User {
24 23
             joinColumns = { @JoinColumn(name = "user_id") },
25 24
             inverseJoinColumns = { @JoinColumn(name = "chat_id") }
26 25
     )
27
-    private Chat chat;
26
+    private Set<Chat> chat;
28 27
 
29 28
 
30 29
     public User() {

+ 3
- 1
ZipTeamOrange-server/src/main/resources/application.properties 查看文件

@@ -1,4 +1,6 @@
1
+spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
1 2
 spring.jpa.hibernate.ddl-auto=create-drop
2 3
 spring.datasource.url=jdbc:mysql://localhost:3306/ZipTeamOrange?useSSL=false
3 4
 spring.datasource.username=root
4
-spring.datasource.password=password
5
+logging.level.org.hibernate.SQL=DEBUG
6
+logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE