Change initializations of Collabs to eager

This commit is contained in:
Paulo Gustavo Veiga 2022-01-16 22:47:33 -08:00
parent 7fc91abe59
commit f844692e66
2 changed files with 4 additions and 4 deletions

View File

@ -34,7 +34,7 @@ public class Collaboration implements Serializable {
@Column(name = "role_id",unique = true,nullable = true) @Column(name = "role_id",unique = true,nullable = true)
private CollaborationRole role; private CollaborationRole role;
@ManyToOne(fetch = FetchType.LAZY) @ManyToOne
@JoinColumn(name="mindmap_id",nullable = false) @JoinColumn(name="mindmap_id",nullable = false)
private Mindmap mindMap; private Mindmap mindMap;
@ -42,7 +42,7 @@ public class Collaboration implements Serializable {
@JoinColumn(name="colaborator_id",nullable = false) @JoinColumn(name="colaborator_id",nullable = false)
private Collaborator collaborator; private Collaborator collaborator;
@ManyToOne(fetch = FetchType.LAZY,cascade = CascadeType.ALL) @ManyToOne(cascade = CascadeType.ALL)
@JoinColumn(name="properties_id",nullable = false, unique = true) @JoinColumn(name="properties_id",nullable = false, unique = true)
private CollaborationProperties collaborationProperties = new CollaborationProperties();; private CollaborationProperties collaborationProperties = new CollaborationProperties();;

View File

@ -1,6 +1,6 @@
log4j.rootLogger=DEBUG, stdout, R log4j.rootLogger=INFI, stdout, R
log4j.logger.com.wisemapping=DEBUG,R log4j.logger.com.wisemapping=DEBUG,R
log4j.logger.org.springframework=DEBUG,R log4j.logger.org.springframework=INFO,R
log4j.logger.org.hibernate=DEBUG,R log4j.logger.org.hibernate=DEBUG,R
# Stdout logger <20> # Stdout logger <20>