Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package br.edu.materdei.sistemaescolar.spring.model;
- import java.util.Date;
- import javafx.scene.chart.PieChart;
- import javax.persistence.Column;
- import javax.persistence.Entity;
- import javax.persistence.FetchType;
- import javax.persistence.GeneratedValue;
- import javax.persistence.Id;
- import javax.persistence.JoinColumn;
- import javax.persistence.ManyToOne;
- import javax.persistence.Table;
- import javax.persistence.Temporal;
- import javax.persistence.TemporalType;
- /**
- *
- * @author Marka
- */
- @Entity
- @Table(name = "chamada")
- public class ChamadaVO {
- @Id @GeneratedValue
- private Integer id;
- @Temporal(TemporalType.DATE)
- private Date dtaula;
- @Column(nullable = true)
- private String presente;
- @ManyToOne(fetch = FetchType.LAZY)
- @JoinColumn(nullable = false)
- private AlunoVO aluno;
- @ManyToOne(fetch = FetchType.LAZY)
- @JoinColumn(nullable = false)
- private DisciplinaVO disciplina;
- /**
- * @return the id
- */
- public Integer getId() {
- return id;
- }
- /**
- * @param id the id to set
- */
- public void setId(Integer id) {
- this.id = id;
- }
- /**
- * @return the dtaula
- */
- public Date getDtaula() {
- return dtaula;
- }
- /**
- * @param dtaula the dtaula to set
- */
- public void setDtaula(Date dtaula) {
- this.dtaula = dtaula;
- }
- /**
- * @return the presente
- */
- public String getPresente() {
- return presente;
- }
- /**
- * @param presente the presente to set
- */
- public void setPresente(String presente) {
- this.presente = presente;
- }
- /**
- * @return the aluno
- */
- public AlunoVO getAluno() {
- return aluno;
- }
- /**
- * @param aluno the aluno to set
- */
- public void setAluno(AlunoVO aluno) {
- this.aluno = aluno;
- }
- /**
- * @return the disciplina
- */
- public DisciplinaVO getDisciplina() {
- return disciplina;
- }
- /**
- * @param disciplina the disciplina to set
- */
- public void setDisciplina(DisciplinaVO disciplina) {
- this.disciplina = disciplina;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement