code: public T byId(Object id) {
          this.beforeCheck();
          this.where(primaryKeyColumn, id);
  
          String sql = this.buildSelectSQL(false);
  
          T model = this.queryOne(modelClass, sql, paramValues);
  
          ifNotNullThen(model, () -> this.setJoin(Collections.singletonList(model)));
  
          return model;
      }
docs: query model by primary key
  
  @param id primary key value
  @return model instance