3 attempt to pass pipeline
This commit is contained in:
parent
83c2554f29
commit
79b39de6bb
1 changed files with 6 additions and 0 deletions
|
@ -1,7 +1,9 @@
|
|||
package ch.usi.inf.sa4.sanmarinoes.smarthut.models;
|
||||
|
||||
import java.io.File;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import org.springframework.core.io.FileSystemResource;
|
||||
|
||||
@Entity
|
||||
|
@ -12,8 +14,12 @@ public class SecurityCamera extends Switchable {
|
|||
this.on = false;
|
||||
}
|
||||
|
||||
@Column(name = "camera", nullable = false)
|
||||
@NotNull
|
||||
private boolean on;
|
||||
|
||||
@Column(name = "video", nullable = false)
|
||||
@NotNull
|
||||
private FileSystemResource surveillanceVideo =
|
||||
new FileSystemResource(
|
||||
(new File("backend/media/security_camera_videos/security_camera_1.mp4")));
|
||||
|
|
Loading…
Reference in a new issue