@Column(name = "model")
private String model;
- @Column(name = "dos")
- private String dos;
+ @Column(name = "location")
+ private String location;
@Column(name = "sn")
private String sn;
@Column(name = "jhi_locked")
private String locked;
+ @Column(name = "sw")
+ private String sw;
+
+ @Column(name = "osname")
+ private String osname;
+
+ @Column(name = "osver")
+ private String osver;
+
@OneToMany(mappedBy = "device")
@JsonIgnore
private Set<Report> reports = new HashSet<>();
public Device() {
}
- public Device(String duid, String model, String dos, String sn, String descr, DeviceType dtype) {
+ public Device(String duid, String model, String location, String sn, String descr,
+ DeviceType dtype, String sw, String osname, String osver) {
this.duid = duid;
this.model = model;
- this.dos = dos;
+ this.location = location;
this.sn = sn;
this.descr = descr;
this.dtype = dtype;
this.ctime = Instant.now();
+ this.sw = sw;
+ this.osname = osname;
+ this.osver = osver;
}
public Device duid(String duid) {
return this;
}
- public Device dos(String dos) {
- this.dos = dos;
+ public Device location(String location) {
+ this.location = location;
return this;
}