This commit is contained in:
Paulo Gustavo Veiga 2024-01-21 22:09:28 -08:00
parent a3022d36d2
commit 6ca26ffd10

View File

@ -31,6 +31,7 @@ import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable; import org.jetbrains.annotations.Nullable;
import jakarta.persistence.*; import jakarta.persistence.*;
import java.io.IOException; import java.io.IOException;
import java.io.Serializable; import java.io.Serializable;
import java.io.UnsupportedEncodingException; import java.io.UnsupportedEncodingException;
@ -51,7 +52,7 @@ public class Mindmap implements Serializable {
@Column(name = "edition_date") @Column(name = "edition_date")
private Calendar lastModificationTime; private Calendar lastModificationTime;
@ManyToOne(fetch = FetchType.LAZY) @ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "creator_id", unique = true) @JoinColumn(name = "creator_id", unique = true)
private User creator; private User creator;