Изменено поле типа паттерна
This commit is contained in:
@@ -4,7 +4,8 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import lombok.Data;
|
||||
import lombok.ToString;
|
||||
import org.hibernate.annotations.GenericGenerator;
|
||||
import ru.serega6531.packmate.model.enums.PatternType;
|
||||
import ru.serega6531.packmate.model.enums.PatternDirectionType;
|
||||
import ru.serega6531.packmate.model.enums.PatternSearchType;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.util.List;
|
||||
@@ -33,9 +34,9 @@ public class Pattern {
|
||||
|
||||
private String color; // для вставки в css
|
||||
|
||||
private boolean isRegex;
|
||||
private PatternSearchType searchType;
|
||||
|
||||
private PatternType type;
|
||||
private PatternDirectionType directionType;
|
||||
|
||||
@ManyToMany(mappedBy = "foundPatterns", cascade = CascadeType.ALL, fetch = FetchType.LAZY)
|
||||
@JsonIgnore
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package ru.serega6531.packmate.model.enums;
|
||||
|
||||
public enum PatternType {
|
||||
public enum PatternDirectionType {
|
||||
INPUT, OUTPUT, BOTH
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package ru.serega6531.packmate.model.enums;
|
||||
|
||||
public enum PatternSearchType {
|
||||
REGEX, SUBSTRING, SUBBYTES
|
||||
}
|
||||
@@ -1,7 +1,5 @@
|
||||
package ru.serega6531.packmate.model.enums;
|
||||
|
||||
public enum SubscriptionMessageType {
|
||||
|
||||
SAVE_SERVICE, SAVE_PATTERN, DELETE_SERVICE, DELETE_PATTERN, NEW_STREAM
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user