Created
September 30, 2016 16:33
-
-
Save ktabriga/833d69a813eff25568f37e7b874e974a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Entity | |
@Table(name = "ficha_medica") | |
public class FichaMedica implements Serializable { | |
private static final long serialVersionUID = 1L; | |
@Id | |
@GeneratedValue(strategy = GenerationType.AUTO) | |
private Long id; | |
@NotNull | |
@Enumerated(EnumType.STRING) | |
@Column(name = "tipo_sanguineo", nullable = false) | |
private TipoSanguineo tipoSanguineo; | |
@NotNull | |
@Enumerated(EnumType.STRING) | |
@Column(name = "fator_rh", nullable = false) | |
private FatorRh fatorRh; | |
@Column(name = "bo_alergia") | |
private Boolean boAlergia; | |
@Size(max = 255) | |
@Column(name = "desc_alergia", length = 255) | |
private String descAlergia; | |
@Column(name = "bo_medicamento_uso_continuo") | |
private Boolean boMedicamentoUsoContinuo; | |
@Size(max = 255) | |
@Column(name = "desc_medicamento_uso_continuo", length = 255) | |
private String descMedicamentoUsoContinuo; | |
@Column(name = "bo_problema_cardiaco") | |
private Boolean boProblemaCardiaco; | |
@Size(max = 255) | |
@Column(name = "desc_problema_cardiaco", length = 255) | |
private String descProblemaCardiaco; | |
@Column(name = "bo_disturbio_psicologico") | |
private Boolean boDisturbioPsicologico; | |
@Size(max = 255) | |
@Column(name = "desc_disturbio_psicologico", length = 255) | |
private String descDisturbioPsicologico; | |
@Size(max = 255) | |
@Column(name = "desc_plano_saude", length = 255) | |
private String descPlanoSaude; | |
@NotNull | |
@Size(max = 50) | |
@Column(name = "nr_plano_saude", length = 50, nullable = false) | |
private String nrPlanoSaude; | |
@Column(name = "bo_sabe_nadar") | |
private Boolean boSabeNadar; | |
@Column(name = "bo_deficiencia_fisica") | |
private Boolean boDeficienciaFisica; | |
@Column(name = "bo_deficiencia_visual") | |
private Boolean boDeficienciaVisual; | |
@Column(name = "bo_deficiencia_auditiva") | |
private Boolean boDeficienciaAuditiva; | |
@Column(name = "bo_deficiencia_intelectual") | |
private Boolean boDeficienciaIntelectual; | |
@NotNull | |
@Size(max = 500) | |
@Column(name = "observacoes", length = 500, nullable = false) | |
private String observacoes; | |
@ManyToOne | |
private Aluno aluno; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment