Browse Source

changed the application properties

Chad 6 years ago
parent
commit
95520e3d8a

+ 0
- 1
ZipTeamOrange-server/src/main/java/ZipTeamOrange/chat/Chat.java View File

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

+ 0
- 1
ZipTeamOrange-server/src/main/java/ZipTeamOrange/message/Message.java View File

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

+ 1
- 2
ZipTeamOrange-server/src/main/java/ZipTeamOrange/user/User.java View File

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

+ 3
- 1
ZipTeamOrange-server/src/main/resources/application.properties View File

1
+spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
1
 spring.jpa.hibernate.ddl-auto=create-drop
2
 spring.jpa.hibernate.ddl-auto=create-drop
2
 spring.datasource.url=jdbc:mysql://localhost:3306/ZipTeamOrange?useSSL=false
3
 spring.datasource.url=jdbc:mysql://localhost:3306/ZipTeamOrange?useSSL=false
3
 spring.datasource.username=root
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