Исправлен StackOverflow
This commit is contained in:
@@ -2,12 +2,14 @@ package ru.serega6531.packmate.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import lombok.Data;
|
||||
import lombok.ToString;
|
||||
import org.hibernate.annotations.GenericGenerator;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@ToString(exclude = "matchedStreams")
|
||||
@Entity
|
||||
@GenericGenerator(
|
||||
name = "pattern_generator",
|
||||
@@ -32,7 +34,7 @@ public class Pattern {
|
||||
|
||||
private boolean isRegex;
|
||||
|
||||
@ManyToMany(mappedBy = "foundPatterns", cascade = CascadeType.ALL)
|
||||
@ManyToMany(mappedBy = "foundPatterns", cascade = CascadeType.ALL, fetch = FetchType.LAZY)
|
||||
@JsonIgnore
|
||||
private List<Stream> matchedStreams;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user