Currently PatientService has just two methods: getPatients() and getPatient(Long id).
Missing functionality:
Get journal-entries of a patient, because currently using patient.getJournalEntries() causes:
org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.vaadin.demo.entities.Patient.journalEntries, could not initialize proxy - no Session
Currently
PatientService
has just two methods:getPatients()
andgetPatient(Long id)
.Missing functionality:
patient.getJournalEntries()
causes:org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.vaadin.demo.entities.Patient.journalEntries, could not initialize proxy - no Session