|
|
@@ -9,9 +9,7 @@ import lombok.Setter;
|
|
|
import org.hibernate.annotations.LazyCollection;
|
|
|
import org.hibernate.annotations.LazyCollectionOption;
|
|
|
|
|
|
-import javax.persistence.Column;
|
|
|
-import javax.persistence.ElementCollection;
|
|
|
-import javax.persistence.Entity;
|
|
|
+import javax.persistence.*;
|
|
|
import javax.validation.constraints.NotNull;
|
|
|
import java.util.List;
|
|
|
import java.util.stream.Collectors;
|
|
|
@@ -24,6 +22,7 @@ import java.util.stream.Collectors;
|
|
|
@Getter
|
|
|
@Setter
|
|
|
@Entity
|
|
|
+@Table(name = "devops_machine_info")
|
|
|
public class MachineInfo extends BaseEntity {
|
|
|
@Column(unique = true, nullable = false)
|
|
|
private String machineId;
|
|
|
@@ -46,6 +45,7 @@ public class MachineInfo extends BaseEntity {
|
|
|
@NotNull
|
|
|
@ElementCollection(targetClass = NetworkInfo.class)
|
|
|
@LazyCollection(LazyCollectionOption.FALSE)
|
|
|
+ @CollectionTable(name = "devops_machine_info_networks")
|
|
|
private List<NetworkInfo> networkInfos;
|
|
|
|
|
|
public MachineInfo(EvtAgentStart machineDetail) {
|