code: @SuppressWarnings("unchecked")
      protected void fillIdentityPrimaryKeys(Object entity, ResultSet rs) throws SQLException {
          BeanDesc beanDesc = beanDescFactory.getBeanDesc(entity.getClass());
          int size = beanDesc.getPropertyDescSize();
  
          for(int i=0; i < size; i++){
              PropertyDesc propertyDesc = beanDesc.getPropertyDesc(i);
              PrimaryKey primaryKey = propertyDesc.getAnnotation(PrimaryKey.class);
              if(primaryKey != null && primaryKey.generationType() == GenerationType.IDENTITY){
                  if(rs.next()){
                      Class<?> propertyType = propertyDesc.getPropertyType();
                      @SuppressWarnings("rawtypes")
                      ValueType valueType = MirageUtil.getValueType(propertyType, propertyDesc, dialect, valueTypes);
  
                      if(valueType != null){
                           propertyDesc.setValue(entity, valueType.get(propertyType, rs, 1));
                      }
                  }
              }
          }
      }
docs: Sets GenerationType.IDENTITY properties value.
  
  @param entity the entity
  @param rs the result set
  
  @throws SQLException if something goes wrong.