fixing jpql query in updateMatCalendarInSN()