I have clinic entity which consists of patient
public class Clinic{
@OneToMany(mappedBy="clinic")
private Collection<Patient> patients;
.....
....
}
I have jsf page where I show list of Patient from Clinic class initially all patients are displayed correctly. I have clinic. getPatients() method to get patients.
when I add a new from 'Add new patient' page and return to the patient list page, only newly added patient is displayed, all other patients in the list are missing.
I updated persistence.xml and added <property name="toplink.cache.shared.Clinic" value="false"/> and also to all related entities.
with this update all the patients are displayed after adding new patient, but i do not want to disable cache on all the entities but only clinic and that to while fetching the patients list. Can anyone please tell me how can i achieve this?
[Message sent by forum member 'vijaypangam123' (vijaypangam123)]
http://forums.java.net/jive/thread.jspa?messageID=317701