I have to update information in my database.
FacadePatient.java
class code:
public Patient update(Patient p) {
Patient pat = em.find(Patient.class, p.getPatientId());
p.setPatientPhone(pat.getPatientPhone());
p.setPatientDateNaiss(pat.getPatientDateNaiss());
p.setPatientEmail(pat.getPatientEmail());
p.setPatientJob(pat.getPatientJob());
p.setPatientSmoking(pat.getPatientSmoking());
p.setPatientSize(pat.getPatientSize());
em.merge(pat);
return p;
}
javax.validation.UnexpectedTypeException
would appear as root cause; its package namejavax.validation
in turn hints a problem in JSR303 bean validation; theHVxxxxxx
error code in turn hints a problem from Hibernate Validator), then you would have tagged this question as[bean-validation]
and the question would be so much faster understood/answered then. All the JSF code posted so far is only irrelvant. – From