84 lines
1.6 KiB
Java
84 lines
1.6 KiB
Java
package eu.dnetlib.manager.wf.model;
|
|
|
|
import java.io.Serializable;
|
|
|
|
import javax.persistence.Column;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.Id;
|
|
import javax.persistence.Table;
|
|
|
|
import org.hibernate.annotations.Type;
|
|
import org.hibernate.annotations.TypeDef;
|
|
import org.hibernate.annotations.TypeDefs;
|
|
|
|
import com.vladmihalcea.hibernate.type.json.JsonBinaryType;
|
|
import com.vladmihalcea.hibernate.type.json.JsonStringType;
|
|
|
|
@Entity
|
|
@Table(name = "workflows")
|
|
@TypeDefs({
|
|
@TypeDef(name = "json", typeClass = JsonStringType.class),
|
|
@TypeDef(name = "jsonb", typeClass = JsonBinaryType.class)
|
|
})
|
|
public class WorkflowDbEntry implements Serializable {
|
|
|
|
private static final long serialVersionUID = -4684952453322136556L;
|
|
|
|
@Id
|
|
@Column(name = "id")
|
|
private String id;
|
|
|
|
@Column(name = "name")
|
|
private String name;
|
|
|
|
@Column(name = "family")
|
|
private String family;
|
|
|
|
@Column(name = "description")
|
|
private String description;
|
|
|
|
@Type(type = "jsonb")
|
|
@Column(name = "data", columnDefinition = "jsonb")
|
|
private GraphNodeDbEntry[] graph;
|
|
|
|
public String getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(final String id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(final String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public String getFamily() {
|
|
return family;
|
|
}
|
|
|
|
public void setFamily(final String family) {
|
|
this.family = family;
|
|
}
|
|
|
|
public String getDescription() {
|
|
return description;
|
|
}
|
|
|
|
public void setDescription(final String description) {
|
|
this.description = description;
|
|
}
|
|
|
|
public GraphNodeDbEntry[] getGraph() {
|
|
return graph;
|
|
}
|
|
|
|
public void setGraph(final GraphNodeDbEntry[] graph) {
|
|
this.graph = graph;
|
|
}
|
|
}
|