- added preUpdate method in AbstractEntity and removeReferences method
for VisitationPlan