package at.gv.egiz.pdfas.web.store.db; import java.util.Date; 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; import at.gv.egiz.pdfas.api.processing.PdfasSignResponse; @Entity @Table(name = "response") public class Response { private String uuid; private Date created; private PdfasSignResponse signResponse; @Id @GeneratedValue(generator = "uuid") @GenericGenerator(name = "uuid", strategy = "uuid2") @Column(name = "id", unique = true) public String getId() { return this.uuid; } public void setId(String uuid) { this.uuid = uuid; } @Column(name = "created", nullable = false) public Date getCreated() { return this.created; } public void setCreated(Date created) { this.created = created; } @Column(name = "signedResponse", nullable = false, length = 52428800) public PdfasSignResponse getSignedResponse() { return this.signResponse; } public void setSignedResponse(PdfasSignResponse signResponse) { this.signResponse = signResponse; } }