Добавлен вывод позиций найденных паттернов

This commit is contained in:
serega6531
2019-11-24 23:06:39 +03:00
parent 56e84f6566
commit 9b5a61f023
10 changed files with 127 additions and 57 deletions

View File

@@ -8,6 +8,7 @@ import lombok.NoArgsConstructor;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import java.util.Set;
@Data
@Entity
@@ -42,6 +43,9 @@ public class Packet {
@JsonIgnore
private Stream stream;
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
private Set<FoundPattern> matches;
private long timestamp;
private boolean incoming; // true если от клиента к серверу, иначе false