org.hibernate.cfg.reveng
Class OverrideRepository
java.lang.Object
org.hibernate.cfg.reveng.OverrideRepository
public class OverrideRepository
- extends Object
Method Summary |
OverrideRepository |
addFile(File xmlFile)
|
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 |
OverrideRepository |
addInputStream(InputStream xmlInputStream)
|
void |
addMetaAttributeInfo(TableIdentifier tableIdentifier,
String name,
org.apache.commons.collections.MultiMap map)
|
void |
addMetaAttributeInfo(org.hibernate.mapping.Table table,
Map map)
|
void |
addPrimaryKeyNamesForTable(org.hibernate.mapping.Table table,
List boundColumnNames,
String propertyName,
String compositeIdName)
|
OverrideRepository |
addResource(String path)
Read override from an application resource trying different classloaders. |
void |
addSchemaSelection(SchemaSelection schemaSelection)
|
void |
addTable(org.hibernate.mapping.Table table,
String wantedClassName)
|
void |
addTableFilter(TableFilter filter)
|
void |
addTableIdentifierStrategy(org.hibernate.mapping.Table table,
String identifierClass,
Properties params)
|
OverrideRepository |
addTypeMapping(SQLTypeMapping sqltype)
|
protected Map |
columnToMetaAttributes(TableIdentifier tableIdentifier,
String column)
|
protected boolean |
excludeTable(TableIdentifier identifier)
|
protected String |
getPackageName(TableIdentifier identifier)
|
ReverseEngineeringStrategy |
getReverseEngineeringStrategy()
|
ReverseEngineeringStrategy |
getReverseEngineeringStrategy(ReverseEngineeringStrategy delegate)
|
void |
setExcludedColumn(TableIdentifier tableIdentifier,
String columnName)
|
void |
setPropertyNameForColumn(TableIdentifier identifier,
String columnName,
String property)
|
void |
setTypeNameForColumn(TableIdentifier identifier,
String columnName,
String type)
|
protected Map |
tableToMetaAttributes(TableIdentifier identifier)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OverrideRepository
public OverrideRepository()
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 ReverseEngineeringStrategy getReverseEngineeringStrategy(ReverseEngineeringStrategy delegate)
columnToMetaAttributes
protected Map columnToMetaAttributes(TableIdentifier tableIdentifier,
String column)
tableToMetaAttributes
protected Map tableToMetaAttributes(TableIdentifier identifier)
getReverseEngineeringStrategy
public ReverseEngineeringStrategy 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 boundColumnNames,
String propertyName,
String compositeIdName)
addSchemaSelection
public void addSchemaSelection(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,
Map map)
addMetaAttributeInfo
public void addMetaAttributeInfo(TableIdentifier tableIdentifier,
String name,
org.apache.commons.collections.MultiMap map)