docs: private boolean hasPrimaryKey(T entity) {
          Object pk = getPrimaryKey(entity);
          if (pk == null) {
              return false;
          } else {
              if (pk instanceof Number && ((Number) pk).longValue() == 0) {
                  return false;
              }
          }
          return true;
      }