2017-09-14 12:37:36 +02:00
|
|
|
package entities;
|
|
|
|
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
import java.util.UUID;
|
|
|
|
|
|
|
|
import javax.persistence.Column;
|
|
|
|
import javax.persistence.Entity;
|
|
|
|
import javax.persistence.GeneratedValue;
|
|
|
|
import javax.persistence.Id;
|
|
|
|
import javax.persistence.Table;
|
|
|
|
|
|
|
|
import org.hibernate.annotations.GenericGenerator;
|
2017-10-20 17:11:40 +02:00
|
|
|
import org.hibernate.annotations.Proxy;
|
2017-09-14 12:37:36 +02:00
|
|
|
import org.hibernate.annotations.Type;
|
|
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonIdentityInfo;
|
2017-10-20 17:11:40 +02:00
|
|
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
2017-09-14 12:37:36 +02:00
|
|
|
import com.fasterxml.jackson.annotation.ObjectIdGenerators;
|
2017-10-20 17:11:40 +02:00
|
|
|
import com.fasterxml.jackson.annotation.JsonInclude.Include;
|
2017-09-14 12:37:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
@Entity
|
|
|
|
@Table(name="\"DMPResearcher\"")
|
2017-10-24 18:33:51 +02:00
|
|
|
@JsonIdentityInfo(generator=ObjectIdGenerators.PropertyGenerator.class, property="id")
|
2017-09-14 12:37:36 +02:00
|
|
|
public class DMPResearcher implements Serializable {
|
|
|
|
|
|
|
|
private static final long serialVersionUID = 135449857355252959L;
|
|
|
|
|
|
|
|
public DMPResearcher () {}
|
|
|
|
|
|
|
|
|
|
|
|
@Id
|
|
|
|
@GeneratedValue
|
|
|
|
@GenericGenerator(name = "uuid2", strategy = "uuid2")
|
|
|
|
@Column(name = "\"ID\"", updatable = false, nullable = false, columnDefinition = "BINARY(16)")
|
|
|
|
private UUID id;
|
|
|
|
|
|
|
|
@Type(type="org.hibernate.type.PostgresUUIDType")
|
|
|
|
@Column(name = "\"DMP\"")
|
|
|
|
private UUID dmp;
|
|
|
|
|
|
|
|
@Type(type="org.hibernate.type.PostgresUUIDType")
|
|
|
|
@Column(name = "\"Researcher\"")
|
|
|
|
private UUID researcher;
|
|
|
|
|
|
|
|
@Column(name = "\"Role\"")
|
|
|
|
private Integer role;
|
|
|
|
|
|
|
|
public UUID getId() {
|
|
|
|
return id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setId(UUID id) {
|
|
|
|
this.id = id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public UUID getDmp() {
|
|
|
|
return dmp;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setDmp(UUID dmp) {
|
|
|
|
this.dmp = dmp;
|
|
|
|
}
|
|
|
|
|
|
|
|
public UUID getResearcher() {
|
|
|
|
return researcher;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setResearcher(UUID researcher) {
|
|
|
|
this.researcher = researcher;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Integer getRole() {
|
|
|
|
return role;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setRole(Integer role) {
|
|
|
|
this.role = role;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|