246247248249250251252253254255256
if (wallEntry.isCachedModel() || BatchSessionUtil.isEnabled()) { Object staleObject = session.get(WallEntryImpl.class, wallEntry.getPrimaryKeyObj()); if (staleObject != null) { session.evict(staleObject); } } session.delete(wallEntry);
235236237238239240241242243244245
if (meetupsEntry.isCachedModel() || BatchSessionUtil.isEnabled()) { Object staleObject = session.get(MeetupsEntryImpl.class, meetupsEntry.getPrimaryKeyObj()); if (staleObject != null) { session.evict(staleObject); } } session.delete(meetupsEntry);
259260261262263264265266267268269
BatchSessionUtil.isEnabled()) { Object staleObject = session.get(MeetupsRegistrationImpl.class, meetupsRegistration.getPrimaryKeyObj()); if (staleObject != null) { session.evict(staleObject); } } session.delete(meetupsRegistration);