Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Entity
- @Table(name = "EST_EXTENSAO")
- public class EstPolo extends SgesEntity {
- private static final long serialVersionUID = 1L;
- private Long idPolo;
- private EntEntidade entEntidade;
- private EstEstabelecimento estEstabelecimento;
- private Long idContato;
- private String nome;
- @OneToOne(fetch = FetchType.LAZY)
- @JoinColumn(name = "ID_ENTIDADE")
- public EntEntidade getEntEntidade() {
- return entEntidade;
- }
- public void setEntEntidade(EntEntidade entEntidade) {
- this.entEntidade = entEntidade;
- }
- @OneToOne(fetch = FetchType.LAZY)
- @JoinColumn(name = "ID_ESTABELECIMENTO")
- public EstEstabelecimento getEstEstabelecimento() {
- return estEstabelecimento;
- }
- public void setEstEstabelecimento(EstEstabelecimento estEstabelecimento) {
- this.estEstabelecimento = estEstabelecimento;
- }
- public String getNome() {
- return nome;
- }
- public void setNome(String nome) {
- this.nome = nome;
- }
- @Id
- @Column(name = "ID_EXTENSAO", unique = true, nullable = false)
- public Long getIdPolo() {
- return idPolo;
- }
- public void setIdPolo(Long idPolo) {
- this.idPolo = idPolo;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement