code: private void onInheritedProperty(TableInfo tableInfo, EntityType entityType)
      {
          String discrColumn = ((AbstractManagedType) entityType).getDiscriminatorColumn();
  
          if (discrColumn != null)
          {
              ColumnInfo columnInfo = new ColumnInfo();
              columnInfo.setColumnName(discrColumn);
              columnInfo.setType(String.class);
              columnInfo.setIndexable(true);
  
              IndexInfo idxInfo = new IndexInfo(discrColumn);
              tableInfo.addColumnInfo(columnInfo);
              tableInfo.addToIndexedColumnList(idxInfo);
          }
      }
docs: Add {@link DiscriminatorColumn} for schema generation.
  
  @param tableInfo
  table info.
  @param entityType
  entity type.