Class OverrideRepository

java.lang.Object
org.hibernate.tool.internal.reveng.strategy.OverrideRepository

public class OverrideRepository extends Object
  • Constructor Details

    • OverrideRepository

      public OverrideRepository()
  • Method Details

    • addFile

      public OverrideRepository addFile(File xmlFile)
    • addResource

      public OverrideRepository addResource(String path) throws org.hibernate.MappingException
      Read override from an application resource trying different classloaders. This method will try to load the resource first from the thread context classloader and then from the classloader that loaded Hibernate.
      Throws:
      org.hibernate.MappingException
    • addInputStream

      public OverrideRepository addInputStream(InputStream xmlInputStream) throws org.hibernate.MappingException
      Throws:
      org.hibernate.MappingException
    • addTypeMapping

      public OverrideRepository addTypeMapping(SQLTypeMapping sqltype)
    • getPackageName

      protected String getPackageName(TableIdentifier identifier)
    • excludeTable

      protected boolean excludeTable(TableIdentifier identifier)
    • addTableFilter

      public void addTableFilter(TableFilter filter)
    • getReverseEngineeringStrategy

      public RevengStrategy getReverseEngineeringStrategy(RevengStrategy delegate)
    • columnToMetaAttributes

      protected Map<String,org.hibernate.mapping.MetaAttribute> columnToMetaAttributes(TableIdentifier tableIdentifier, String column)
    • tableToMetaAttributes

      protected Map<String,org.hibernate.mapping.MetaAttribute> tableToMetaAttributes(TableIdentifier identifier)
    • getReverseEngineeringStrategy

      public RevengStrategy getReverseEngineeringStrategy()
    • addTable

      public void addTable(org.hibernate.mapping.Table table, String wantedClassName)
    • setTypeNameForColumn

      public void setTypeNameForColumn(TableIdentifier identifier, String columnName, String type)
    • setExcludedColumn

      public void setExcludedColumn(TableIdentifier tableIdentifier, String columnName)
    • setPropertyNameForColumn

      public void setPropertyNameForColumn(TableIdentifier identifier, String columnName, String property)
    • addTableIdentifierStrategy

      public void addTableIdentifierStrategy(org.hibernate.mapping.Table table, String identifierClass, Properties params)
    • addPrimaryKeyNamesForTable

      public void addPrimaryKeyNamesForTable(org.hibernate.mapping.Table table, List<String> boundColumnNames, String propertyName, String compositeIdName)
    • addSchemaSelection

      public void addSchemaSelection(RevengStrategy.SchemaSelection schemaSelection)
    • addForeignKeyInfo

      public void addForeignKeyInfo(String constraintName, String toOneProperty, Boolean excludeToOne, String inverseProperty, Boolean excludeInverse, AssociationInfo associationInfo, AssociationInfo inverseAssociationInfo)
      Both sides of the FK are important, the owning side can generate a toOne (ManyToOne or OneToOne), we call this side foreignKeyToOne the inverse side can generate a OneToMany OR a OneToOne (in case we have a pure bidirectional OneToOne, we call this side foreignKeyToInverse
    • addMetaAttributeInfo

      public void addMetaAttributeInfo(org.hibernate.mapping.Table table, org.apache.commons.collections4.MultiValuedMap<String,MetaAttributeHelper.SimpleMetaAttribute> map)
    • addMetaAttributeInfo

      public void addMetaAttributeInfo(TableIdentifier tableIdentifier, String name, org.apache.commons.collections4.MultiValuedMap<String,MetaAttributeHelper.SimpleMetaAttribute> map)