Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.23 KB | None | 0 0
  1.  
  2. package br.edu.materdei.sistemaescolar.spring.model;
  3.  
  4. import java.util.Date;
  5. import javafx.scene.chart.PieChart;
  6. import javax.persistence.Column;
  7. import javax.persistence.Entity;
  8. import javax.persistence.FetchType;
  9. import javax.persistence.GeneratedValue;
  10. import javax.persistence.Id;
  11. import javax.persistence.JoinColumn;
  12. import javax.persistence.ManyToOne;
  13. import javax.persistence.Table;
  14. import javax.persistence.Temporal;
  15. import javax.persistence.TemporalType;
  16.  
  17. /**
  18.  *
  19.  * @author Marka
  20.  */
  21. @Entity
  22. @Table(name = "chamada")
  23. public class ChamadaVO {
  24.  
  25.     @Id @GeneratedValue
  26.     private Integer id;
  27.    
  28.     @Temporal(TemporalType.DATE)
  29.     private Date dtaula;
  30.    
  31.     @Column(nullable = true)
  32.     private String presente;
  33.    
  34.     @ManyToOne(fetch = FetchType.LAZY)
  35.     @JoinColumn(nullable = false)    
  36.     private AlunoVO aluno;
  37.    
  38.     @ManyToOne(fetch = FetchType.LAZY)
  39.     @JoinColumn(nullable = false)  
  40.     private DisciplinaVO disciplina;    
  41.  
  42.     /**
  43.      * @return the id
  44.      */
  45.     public Integer getId() {
  46.         return id;
  47.     }
  48.  
  49.     /**
  50.      * @param id the id to set
  51.      */
  52.     public void setId(Integer id) {
  53.         this.id = id;
  54.     }
  55.  
  56.     /**
  57.      * @return the dtaula
  58.      */
  59.     public Date getDtaula() {
  60.         return dtaula;
  61.     }
  62.  
  63.     /**
  64.      * @param dtaula the dtaula to set
  65.      */
  66.     public void setDtaula(Date dtaula) {
  67.         this.dtaula = dtaula;
  68.     }
  69.  
  70.     /**
  71.      * @return the presente
  72.      */
  73.     public String getPresente() {
  74.         return presente;
  75.     }
  76.  
  77.     /**
  78.      * @param presente the presente to set
  79.      */
  80.     public void setPresente(String presente) {
  81.         this.presente = presente;
  82.     }
  83.  
  84.     /**
  85.      * @return the aluno
  86.      */
  87.     public AlunoVO getAluno() {
  88.         return aluno;
  89.     }
  90.  
  91.     /**
  92.      * @param aluno the aluno to set
  93.      */
  94.     public void setAluno(AlunoVO aluno) {
  95.         this.aluno = aluno;
  96.     }
  97.  
  98.     /**
  99.      * @return the disciplina
  100.      */
  101.     public DisciplinaVO getDisciplina() {
  102.         return disciplina;
  103.     }
  104.  
  105.     /**
  106.      * @param disciplina the disciplina to set
  107.      */
  108.     public void setDisciplina(DisciplinaVO disciplina) {
  109.         this.disciplina = disciplina;
  110.     }
  111. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement