Skip to content

Commit

Permalink
[backend] add notnull constraint in executable class
Browse files Browse the repository at this point in the history
  • Loading branch information
isselparra committed Oct 14, 2024
1 parent 09f826f commit ca0c246
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import io.openbas.database.audit.ModelBaseListener;
import io.openbas.helper.MonoIdDeserializer;
import jakarta.persistence.*;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

Expand All @@ -31,6 +32,7 @@ public class Executable extends Payload {
@Column(name = "executable_arch")
@JsonProperty("executable_arch")
@Enumerated(EnumType.STRING)
@NotNull
private Endpoint.PLATFORM_ARCH executableArch;

public Executable() {
Expand Down

0 comments on commit ca0c246

Please sign in to comment.