package nl.ipo.cds.domain;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.validation.constraints.NotNull;
@Entity
public class MetadataDocument {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
@NotNull
@Enumerated(EnumType.STRING)
private MetadataDocumentType documentType;
@Column
@NotNull
private String documentName;
@ManyToOne
private Thema thema;
public Long getId() {
return id;
}
public MetadataDocumentType getDocumentType() {
return documentType;
}
public void setDocumentType(MetadataDocumentType documentType) {
this.documentType = documentType;
}
public String getDocumentName() {
return documentName;
}
public void setDocumentName(String documentName) {
this.documentName = documentName;
}
public Thema getThema() {
return thema;
}
public void setThema(Thema thema) {
this.thema = thema;
}
}