Class OverrideRepository
java.lang.Object
org.hibernate.tool.internal.reveng.strategy.OverrideRepository
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddForeignKeyInfo(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 foreignKeyToInverseaddInputStream(InputStream xmlInputStream) voidaddMetaAttributeInfo(org.hibernate.mapping.Table table, org.apache.commons.collections4.MultiValuedMap<String, MetaAttributeHelper.SimpleMetaAttribute> map) voidaddMetaAttributeInfo(TableIdentifier tableIdentifier, String name, org.apache.commons.collections4.MultiValuedMap<String, MetaAttributeHelper.SimpleMetaAttribute> map) voidaddPrimaryKeyNamesForTable(org.hibernate.mapping.Table table, List<String> boundColumnNames, String propertyName, String compositeIdName) addResource(String path) Read override from an application resource trying different classloaders.voidaddSchemaSelection(RevengStrategy.SchemaSelection schemaSelection) voidvoidaddTableFilter(TableFilter filter) voidaddTableIdentifierStrategy(org.hibernate.mapping.Table table, String identifierClass, Properties params) addTypeMapping(SQLTypeMapping sqltype) columnToMetaAttributes(TableIdentifier tableIdentifier, String column) protected booleanexcludeTable(TableIdentifier identifier) protected StringgetPackageName(TableIdentifier identifier) getReverseEngineeringStrategy(RevengStrategy delegate) voidsetExcludedColumn(TableIdentifier tableIdentifier, String columnName) voidsetPropertyNameForColumn(TableIdentifier identifier, String columnName, String property) voidsetTypeNameForColumn(TableIdentifier identifier, String columnName, String type) tableToMetaAttributes(TableIdentifier identifier)
-
Constructor Details
-
OverrideRepository
public OverrideRepository()
-
-
Method Details
-
addFile
-
addResource
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
-
getPackageName
-
excludeTable
-
addTableFilter
-
getReverseEngineeringStrategy
-
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
-
addTable
-
setTypeNameForColumn
-
setExcludedColumn
-
setPropertyNameForColumn
public void setPropertyNameForColumn(TableIdentifier identifier, String columnName, String property) -
addTableIdentifierStrategy
public void addTableIdentifierStrategy(org.hibernate.mapping.Table table, String identifierClass, Properties params) -
addPrimaryKeyNamesForTable
-
addSchemaSelection
-
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)
-