Добавлен поиск паттернов в прошлых стримах
This commit is contained in:
@@ -42,7 +42,10 @@ public class Pattern {
|
||||
|
||||
private PatternActionType actionType;
|
||||
|
||||
private long searchStartTimestamp;
|
||||
|
||||
@ManyToMany(mappedBy = "foundPatterns", fetch = FetchType.LAZY)
|
||||
private List<Stream> matchedStreams;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ import org.hibernate.annotations.GenericGenerator;
|
||||
import ru.serega6531.packmate.model.enums.Protocol;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -40,8 +41,8 @@ public class Stream {
|
||||
|
||||
private long endTimestamp;
|
||||
|
||||
@ManyToMany(cascade = CascadeType.ALL)
|
||||
private Set<Pattern> foundPatterns;
|
||||
@ManyToMany
|
||||
private Set<Pattern> foundPatterns = new HashSet<>();
|
||||
|
||||
private boolean favorite;
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ public enum SubscriptionMessageType {
|
||||
SAVE_SERVICE, SAVE_PATTERN,
|
||||
DELETE_SERVICE, DELETE_PATTERN,
|
||||
NEW_STREAM,
|
||||
FINISH_LOOKBACK,
|
||||
COUNTERS_UPDATE,
|
||||
ENABLE_PATTERN, DISABLE_PATTERN,
|
||||
PCAP_STARTED, PCAP_STOPPED
|
||||
|
||||
Reference in New Issue
Block a user