2017-12-15 00:01:26 +01:00
|
|
|
package eu.eudat.entities;
|
2017-09-14 12:37:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
import org.hibernate.annotations.GenericGenerator;
|
|
|
|
|
2018-02-16 11:34:02 +01:00
|
|
|
import javax.persistence.*;
|
|
|
|
import java.io.Serializable;
|
|
|
|
import java.util.UUID;
|
2017-09-14 12:37:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
@Entity
|
2018-02-16 11:34:02 +01:00
|
|
|
@Table(name = "\"DMPOrganisation\"")
|
2018-02-20 08:50:17 +01:00
|
|
|
public class DMPOrganisation {
|
2018-02-16 11:34:02 +01:00
|
|
|
|
|
|
|
@Id
|
|
|
|
@GeneratedValue
|
2017-09-14 12:37:36 +02:00
|
|
|
@GenericGenerator(name = "uuid2", strategy = "uuid2")
|
|
|
|
@Column(name = "\"ID\"", updatable = false, nullable = false, columnDefinition = "BINARY(16)")
|
2018-02-16 11:34:02 +01:00
|
|
|
private UUID id;
|
|
|
|
|
2017-09-14 12:37:36 +02:00
|
|
|
@Column(name = "\"DMP\"")
|
2018-02-16 11:34:02 +01:00
|
|
|
private UUID dmp;
|
|
|
|
|
2017-09-14 12:37:36 +02:00
|
|
|
@Column(name = "\"Organisation\"")
|
2018-02-16 11:34:02 +01:00
|
|
|
private UUID organisation;
|
|
|
|
|
|
|
|
@Column(name = "\"Role\"")
|
|
|
|
private Integer role;
|
|
|
|
|
|
|
|
public UUID getId() {
|
|
|
|
return id;
|
|
|
|
}
|
2017-09-14 12:37:36 +02:00
|
|
|
|
2018-02-16 11:34:02 +01:00
|
|
|
public void setId(UUID id) {
|
|
|
|
this.id = id;
|
|
|
|
}
|
2017-09-14 12:37:36 +02:00
|
|
|
|
2018-02-16 11:34:02 +01:00
|
|
|
public UUID getDmp() {
|
|
|
|
return dmp;
|
|
|
|
}
|
2017-09-14 12:37:36 +02:00
|
|
|
|
2018-02-16 11:34:02 +01:00
|
|
|
public void setDmp(UUID dmp) {
|
|
|
|
this.dmp = dmp;
|
|
|
|
}
|
2017-09-14 12:37:36 +02:00
|
|
|
|
2018-02-16 11:34:02 +01:00
|
|
|
public UUID getOrganisation() {
|
|
|
|
return organisation;
|
|
|
|
}
|
2017-09-14 12:37:36 +02:00
|
|
|
|
2018-02-16 11:34:02 +01:00
|
|
|
public void setOrganisation(UUID organisation) {
|
|
|
|
this.organisation = organisation;
|
|
|
|
}
|
2017-09-14 12:37:36 +02:00
|
|
|
|
2018-02-16 11:34:02 +01:00
|
|
|
public Integer getRole() {
|
|
|
|
return role;
|
|
|
|
}
|
2017-09-14 12:37:36 +02:00
|
|
|
|
2018-02-16 11:34:02 +01:00
|
|
|
public void setRole(Integer role) {
|
|
|
|
this.role = role;
|
|
|
|
}
|
2017-09-14 12:37:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
}
|