Complexo Regulador model
Complexo Regulador modelunknown
java
3 years ago
1.5 kB
14
Indexable
package br.gov.go.saude.regnet.model;
import java.io.Serializable;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import com.fasterxml.jackson.annotation.JsonInclude;
import br.gov.go.saude.arquitetura.model.Model;
import br.gov.go.saude.arquitetura.model.annotation.Label;
import br.gov.go.saude.corp.model.EstabelecimentoSaude;
import br.gov.go.saude.corp.model.Municipio;
@Entity
@Table(schema = "regnet", name = "complexo_regulador")
@JsonInclude(value = JsonInclude.Include.NON_NULL)
@Label("Complexo Regulador")
public class ComplexoRegulador extends Model<ComplexoRegulador> implements Serializable{
@Id
@Label("Id")
@Column(name = "core_id")
public Long id;
@Label("Nome")
@Column(name = "core_nome")
public String nome;
@Label("Email")
@Column(name = "core_email")
public String complexoEmail;
@Label("CNES")
@Column(name = "core_cnes")
public Long cnesComplexo;
@OneToMany(mappedBy = "complexoRegulador")
public List<MunicipioComplexoRegulador> listaMunicipiosRegulados;
@Label("CNES")
@Column(name = "core_municipio_id")
public Long idMunicipioLocalizado;
@ManyToOne
@JoinColumn(name = "core_municipio_id")
public Municipio municipio;
}
Editor is loading...