code: public boolean hasIdentityColumn(DbEntity entity) {
          for (final DbColumn column : entity.getColumns()) {
              if (column.isAutoInc()) {
                  return true;
              }
          }
          return false;
      }
docs: Check if the entity has an identity column.
  
  @param entity The entity to check.
  @return True if the entity has an identity column and false otherwise.