Estou fazendo um web service simples.
Estou tendo esse erro, Ta falando que nome_paciente não existe! Mas coloquei a notação @Column
Alguém sabe por que dá esse erro?
Unrecognized field “nome_paciente” (class br.com.api.model.domain.Paciente), not marked as ignorable (3 known properties: “cns”, “nomePaciente”, “idPaciente”])
at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@b3b99a8; line: 2, column: 20] (through reference chain: br.com.api.model.domain.Paciente[“nome_paciente”])
Minha Classe!
@Entity
public class Paciente {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = “id_paciente”, nullable = false)
private int idPaciente;
@Column(name = "nome_paciente", length = 50, nullable = true)
private String nomePaciente;
@Column(name = "cns", length = 15, nullable = false)
private String cns;