code: public final void updateLastCheckTime(final String id, final long lastCheckTime) {
          final CriteriaBuilder builder = getSession().getCriteriaBuilder();
          final CriteriaUpdate<PrintJobStatusExtImpl> update =
                  builder.createCriteriaUpdate(PrintJobStatusExtImpl.class);
          final Root<PrintJobStatusExtImpl> root = update.from(PrintJobStatusExtImpl.class);
          update.where(builder.equal(root.get("referenceId"), id));
          update.set(root.get("lastCheckTime"), lastCheckTime);
          getSession().createQuery(update).executeUpdate();
      }
docs: Update the lastCheckTime of the given record.
  
  @param id the id
  @param lastCheckTime the new value