3 attempt to pass pipeline

This commit is contained in:
omenem 2020-04-09 15:25:17 +02:00
parent 83c2554f29
commit 79b39de6bb

View file

@ -1,7 +1,9 @@
package ch.usi.inf.sa4.sanmarinoes.smarthut.models; package ch.usi.inf.sa4.sanmarinoes.smarthut.models;
import java.io.File; import java.io.File;
import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.validation.constraints.NotNull;
import org.springframework.core.io.FileSystemResource; import org.springframework.core.io.FileSystemResource;
@Entity @Entity
@ -12,8 +14,12 @@ public class SecurityCamera extends Switchable {
this.on = false; this.on = false;
} }
@Column(name = "camera", nullable = false)
@NotNull
private boolean on; private boolean on;
@Column(name = "video", nullable = false)
@NotNull
private FileSystemResource surveillanceVideo = private FileSystemResource surveillanceVideo =
new FileSystemResource( new FileSystemResource(
(new File("backend/media/security_camera_videos/security_camera_1.mp4"))); (new File("backend/media/security_camera_videos/security_camera_1.mp4")));