Upload de rede bayesiana.
[simdecs_seam.git] / SimDeCS / src / main / org / ufcspa / simdecs / entities / ArquivoRede.java
diff --git a/SimDeCS/src/main/org/ufcspa/simdecs/entities/ArquivoRede.java b/SimDeCS/src/main/org/ufcspa/simdecs/entities/ArquivoRede.java
new file mode 100644 (file)
index 0000000..f72bb19
--- /dev/null
@@ -0,0 +1,39 @@
+package org.ufcspa.simdecs.entities;
+
+import javax.persistence.Basic;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.FetchType;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
+import javax.persistence.Lob;
+
+@Entity
+public class ArquivoRede implements java.io.Serializable {
+
+       @Id
+       @GeneratedValue
+       private Long id;
+       public Long getId() { return this.id; }
+       public void setId(Long id) { this.id = id; }
+       
+       private String nome;
+       public String getNome() { return this.nome;     }
+       public void setNome(String name) { this.nome = name; }
+       
+       private long tamanho;
+       public long getTamanho() { return this.tamanho; }
+       public void setTamanho(long size) { this.tamanho = size; }
+       
+       private String contentType;
+       public String getContentType() { return this.contentType; }
+       public void setContentType(String contentType) { this.contentType = contentType; }
+       
+       @Lob
+       @Column(length = 2147483647)
+       @Basic(fetch = FetchType.LAZY)
+       private byte[] data;
+       public byte[] getData() { return this.data; }
+       public void setData(byte[] data) { this.data = data; }
+       
+}
\ No newline at end of file