Refactorings for RedeBayesiana and ArquivoRedeBayesiana.
[simdecs_seam.git] / SimDeCS / src / main / org / ufcspa / simdecs / entities / ArquivoRedeBayesiana.java
CommitLineData
6f43ba4a
MS
1package org.ufcspa.simdecs.entities;
2
3import javax.persistence.Basic;
4import javax.persistence.Column;
5import javax.persistence.Entity;
6import javax.persistence.FetchType;
7import javax.persistence.GeneratedValue;
8import javax.persistence.Id;
9import javax.persistence.Lob;
d1c23fc5 10import javax.persistence.Table;
6f43ba4a
MS
11
12@Entity
d1c23fc5
MS
13@Table(name="ArquivoRedeBayesiana")
14public class ArquivoRedeBayesiana implements java.io.Serializable {
6f43ba4a 15
d1c23fc5
MS
16 /**
17 *
18 */
19 private static final long serialVersionUID = -4027369275301275024L;
6f43ba4a
MS
20 @Id
21 @GeneratedValue
22 private Long id;
23 public Long getId() { return this.id; }
24 public void setId(Long id) { this.id = id; }
25
26 private String nome;
27 public String getNome() { return this.nome; }
28 public void setNome(String name) { this.nome = name; }
29
30 private long tamanho;
31 public long getTamanho() { return this.tamanho; }
32 public void setTamanho(long size) { this.tamanho = size; }
33
34 private String contentType;
35 public String getContentType() { return this.contentType; }
36 public void setContentType(String contentType) { this.contentType = contentType; }
37
38 @Lob
39 @Column(length = 2147483647)
40 @Basic(fetch = FetchType.LAZY)
41 private byte[] data;
42 public byte[] getData() { return this.data; }
43 public void setData(byte[] data) { this.data = data; }
44
d1c23fc5 45
6f43ba4a 46}