Commits

Francisco Souza committed b8a5778

Mudança do mapeamento para que o banco de dados reconheça o tipo TEXT para campos de texto muito grandes.

Correção baseada no issue #2.

Comments (0)

Files changed (2)

src/br/gov/presidentekennedy/habisoft/model/Pessoa.java

 import javax.persistence.GenerationType;
 import javax.persistence.Id;
 import javax.persistence.JoinColumn;
+import javax.persistence.Lob;
 import javax.persistence.ManyToOne;
 import javax.persistence.NamedQueries;
 import javax.persistence.NamedQuery;
 
     private Boolean terreno;
 
+    @Lob
     private String laudoAssistente;
 
     @Temporal(TemporalType.DATE)

src/br/gov/presidentekennedy/habisoft/model/SaudeDaFamilia.java

 import javax.persistence.GeneratedValue;
 import javax.persistence.GenerationType;
 import javax.persistence.Id;
+import javax.persistence.Lob;
 import javax.persistence.NamedQueries;
 import javax.persistence.NamedQuery;
 import javax.persistence.OneToMany;
     
     private String medicamentoCompanheiro;
 
+    @Lob
     private String informacoesAdicionais;
 
     @OneToOne(mappedBy = "informacoesDeSaude")