This content has been marked as final. Show 3 replies
Looks work for me. But is this the correct way to do that?
// after Course course = (Course ) queryPatientNotifications.getSingleResult(); adding entityManager.refresh(course);
This is one way of many. EclipseLink/Toplink uses a shared cache that exists more at the factory level described here:
This is for performance and is great when there is a single application accessing the data. Depending on how often or the timing of when other applications make changes, you may want to disable the shared cache outright, or set the cache to be invalidated at specific times as appropriate.
Thank you cdelahun.