Class Cfg2HbmTool
java.lang.Object
org.hibernate.tool.internal.export.hbm.Cfg2HbmTool
- Author:
- David Channon and Max
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncolumnAttributes(org.hibernate.mapping.Column col) columnAttributes(org.hibernate.mapping.Column column, boolean isPrimaryKeyColumn) getClassLevelOptimisticLockMode(org.hibernate.mapping.PersistentClass pc) getClassName(org.hibernate.mapping.OneToMany om) getClassName(org.hibernate.mapping.PersistentClass pc) getCollectionElementTag(org.hibernate.mapping.Property property) getCollectionLazy(org.hibernate.mapping.Collection value) getFetchMode(org.hibernate.mapping.Property property) Set<?> getFilteredIdentifierGeneratorKeySet(org.hibernate.mapping.Property property, Properties props) static PropertiesgetFilteredIdentifierGeneratorProperties(Properties properties, Properties environmentProperties) Remove any internal keys from the set, eg, any Keys that are prefixed by 'target_',and return the filtered collection.invalid reference
PersistentIdentifierGenerator.IDENTIFIER_NORMALIZERorg.hibernate.mapping.FormulagetFormulaForProperty(org.hibernate.mapping.Property prop) getHibernateTypeName(org.hibernate.mapping.Property p) getIdentifierGeneratorProperties(org.hibernate.mapping.Property property) Iterator<?> getProperties(org.hibernate.mapping.Component v) Iterator<?> getProperties(org.hibernate.mapping.PersistentClass pc) getProxyInterfaceName(org.hibernate.mapping.PersistentClass pc) getSafeHibernateTypeName(org.hibernate.mapping.Property p) getTag(org.hibernate.mapping.PersistentClass pc) getTag(org.hibernate.mapping.Property property) getUnsavedValue(org.hibernate.mapping.Property property) booleanhasCustomEntityPersister(org.hibernate.mapping.PersistentClass clazz) booleanhasFetchMode(org.hibernate.mapping.Property property) booleanisClassLevelOptimisticLockMode(org.hibernate.mapping.PersistentClass pc) booleanisCollection(org.hibernate.mapping.Property property) booleanisFilterDefinitions(org.hibernate.boot.Metadata md) booleanisIdentifierGeneratorProperties(org.hibernate.mapping.Property property) booleanisImportData(org.hibernate.boot.Metadata md) booleanisJoinedSubclass(org.hibernate.mapping.PersistentClass clazz) booleanisManyToAny(org.hibernate.mapping.Property property) booleanisManyToAny(org.hibernate.mapping.Value value) booleanisManyToMany(org.hibernate.mapping.Property property) booleanisManyToMany(org.hibernate.mapping.Value value) booleanisManyToOne(org.hibernate.mapping.Property property) booleanisManyToOne(org.hibernate.mapping.Value value) booleanisNamedQueries(org.hibernate.boot.Metadata md) booleanisNamedSQLQueries(org.hibernate.boot.Metadata md) booleanisOneToMany(org.hibernate.mapping.Property property) booleanisOneToMany(org.hibernate.mapping.Value value) booleanisOneToManyCollection(org.hibernate.mapping.Property property) booleanisOneToOne(org.hibernate.mapping.Property property) booleanisSimpleValue(org.hibernate.mapping.Property property) booleanisSubclass(org.hibernate.mapping.PersistentClass clazz) booleanisTemporalValue(org.hibernate.mapping.Property property) booleanisUnsavedValue(org.hibernate.mapping.Property property) booleanneedsDiscriminator(org.hibernate.mapping.PersistentClass clazz) booleanneedsDiscriminatorElement(org.hibernate.mapping.PersistentClass clazz) booleanneedsTable(org.hibernate.mapping.PersistentClass clazz)
-
Constructor Details
-
Cfg2HbmTool
public Cfg2HbmTool()
-
-
Method Details
-
getFilteredIdentifierGeneratorProperties
public static Properties getFilteredIdentifierGeneratorProperties(Properties properties, Properties environmentProperties) Remove any internal keys from the set, eg, any Keys that are prefixed by 'target_',and return the filtered collection.invalid reference
PersistentIdentifierGenerator.IDENTIFIER_NORMALIZER- Parameters:
properties-- Returns:
-
getTag
-
getTag
-
getCollectionElementTag
-
isUnsavedValue
public boolean isUnsavedValue(org.hibernate.mapping.Property property) -
getUnsavedValue
-
isIdentifierGeneratorProperties
public boolean isIdentifierGeneratorProperties(org.hibernate.mapping.Property property) - Parameters:
property-- Returns:
-
getIdentifierGeneratorProperties
-
getFilteredIdentifierGeneratorKeySet
public Set<?> getFilteredIdentifierGeneratorKeySet(org.hibernate.mapping.Property property, Properties props) - Parameters:
property-- Returns:
-
isOneToMany
public boolean isOneToMany(org.hibernate.mapping.Property property) -
isOneToMany
public boolean isOneToMany(org.hibernate.mapping.Value value) -
isManyToMany
public boolean isManyToMany(org.hibernate.mapping.Property property) -
isManyToMany
public boolean isManyToMany(org.hibernate.mapping.Value value) -
isCollection
public boolean isCollection(org.hibernate.mapping.Property property) -
isOneToManyCollection
public boolean isOneToManyCollection(org.hibernate.mapping.Property property) -
isSimpleValue
public boolean isSimpleValue(org.hibernate.mapping.Property property) -
isManyToOne
public boolean isManyToOne(org.hibernate.mapping.Property property) -
isManyToAny
public boolean isManyToAny(org.hibernate.mapping.Property property) -
isManyToAny
public boolean isManyToAny(org.hibernate.mapping.Value value) -
isManyToOne
public boolean isManyToOne(org.hibernate.mapping.Value value) -
isOneToOne
public boolean isOneToOne(org.hibernate.mapping.Property property) -
isTemporalValue
public boolean isTemporalValue(org.hibernate.mapping.Property property) -
isNamedQueries
public boolean isNamedQueries(org.hibernate.boot.Metadata md) -
isNamedSQLQueries
public boolean isNamedSQLQueries(org.hibernate.boot.Metadata md) -
getCollectionLazy
-
isFilterDefinitions
public boolean isFilterDefinitions(org.hibernate.boot.Metadata md) -
isClassLevelOptimisticLockMode
public boolean isClassLevelOptimisticLockMode(org.hibernate.mapping.PersistentClass pc) -
getClassLevelOptimisticLockMode
-
hasFetchMode
public boolean hasFetchMode(org.hibernate.mapping.Property property) -
getFetchMode
-
getFormulaForProperty
public org.hibernate.mapping.Formula getFormulaForProperty(org.hibernate.mapping.Property prop) -
columnAttributes
-
columnAttributes
-
getClassName
-
getClassName
-
getProxyInterfaceName
-
isImportData
public boolean isImportData(org.hibernate.boot.Metadata md) -
needsDiscriminatorElement
public boolean needsDiscriminatorElement(org.hibernate.mapping.PersistentClass clazz) -
needsDiscriminator
public boolean needsDiscriminator(org.hibernate.mapping.PersistentClass clazz) -
needsTable
public boolean needsTable(org.hibernate.mapping.PersistentClass clazz) -
isSubclass
public boolean isSubclass(org.hibernate.mapping.PersistentClass clazz) -
isJoinedSubclass
public boolean isJoinedSubclass(org.hibernate.mapping.PersistentClass clazz) -
hasCustomEntityPersister
public boolean hasCustomEntityPersister(org.hibernate.mapping.PersistentClass clazz) -
getHibernateTypeName
-
getSafeHibernateTypeName
-
getProperties
-
getProperties
-