Advertisement
Guest User

Untitled

a guest
Jun 21st, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.11 KB | None | 0 0
  1. @Entity
  2. @Table(name = "EST_EXTENSAO")
  3. public class EstPolo extends SgesEntity {
  4.     private static final long serialVersionUID = 1L;
  5.  
  6.     private Long idPolo;
  7.     private EntEntidade entEntidade;
  8.     private EstEstabelecimento estEstabelecimento;
  9.     private Long idContato;
  10.     private String nome;
  11.  
  12.     @OneToOne(fetch = FetchType.LAZY)
  13.     @JoinColumn(name = "ID_ENTIDADE")
  14.     public EntEntidade getEntEntidade() {
  15.         return entEntidade;
  16.     }
  17.  
  18.     public void setEntEntidade(EntEntidade entEntidade) {
  19.         this.entEntidade = entEntidade;
  20.     }
  21.  
  22.     @OneToOne(fetch = FetchType.LAZY)
  23.     @JoinColumn(name = "ID_ESTABELECIMENTO")
  24.     public EstEstabelecimento getEstEstabelecimento() {
  25.         return estEstabelecimento;
  26.     }
  27.  
  28.     public void setEstEstabelecimento(EstEstabelecimento estEstabelecimento) {
  29.         this.estEstabelecimento = estEstabelecimento;
  30.     }
  31.  
  32.     public String getNome() {
  33.         return nome;
  34.     }
  35.  
  36.     public void setNome(String nome) {
  37.         this.nome = nome;
  38.     }
  39.  
  40.     @Id
  41.     @Column(name = "ID_EXTENSAO", unique = true, nullable = false)
  42.     public Long getIdPolo() {
  43.         return idPolo;
  44.     }
  45.  
  46.     public void setIdPolo(Long idPolo) {
  47.         this.idPolo = idPolo;
  48.     }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement