public interface HibernateToManyProperty extends HibernateAssociation, PropertyWithMapping
Marker interface for Hibernate to-many associations
| Type Params | Return Type | Name and description |
|---|---|---|
|
public java.lang.Integer |
getBatchSize() |
|
public java.lang.String |
getCacheUsage() |
|
public java.lang.String |
getCascade() |
|
public org.hibernate.mapping.Collection |
getCollection() |
|
public java.util.Optional<ColumnConfig> |
getColumnConfigOptional() |
|
public java.lang.Class<?> |
getComponentType()Returns the component type for this to-many collection, or null if it cannot be
determined. |
|
public org.hibernate.FetchMode |
getFetchMode() |
|
public org.hibernate.mapping.Collection |
getHibernateCollection() |
|
public boolean |
getIgnoreNotFound() |
|
public CascadeBehavior |
getImpliedCascadeBehavior()The cascade behavior implied by this to-many property's shape, absent an explicit cascade mapping. |
|
public java.lang.String |
getIndexColumnName(PersistentEntityNamingStrategy namingStrategy) |
|
public java.lang.String |
getIndexColumnType(java.lang.String defaultType) |
|
public java.lang.Boolean |
getLazy() |
|
public java.lang.String |
getMapElementName(PersistentEntityNamingStrategy namingStrategy) |
|
public java.lang.String |
getOrder() |
|
public java.lang.String |
getRole(java.lang.String path) |
|
public java.lang.String |
getSort() |
|
public boolean |
hasSort() |
|
public boolean |
isAssociationColumnNullable()
|
|
public boolean |
isBasic() |
|
public boolean |
isEnum() |
|
public boolean |
isManyToMany() |
|
public boolean |
isOneToMany() |
|
public java.lang.String |
joinTableColumName(PersistentEntityNamingStrategy namingStrategy) |
|
public java.lang.String |
resolveAssociatedEntityTableName(PersistentEntityNamingStrategy namingStrategy)Resolves the associated root entity's table name for use as a join-table foreign-key column prefix. |
|
public java.lang.String |
resolveJoinTableForeignKeyColumnName(PersistentEntityNamingStrategy namingStrategy)Only reached for a unidirectional hasMany join table (via CollectionWithJoinTableBinder).
|
|
public void |
setCollection(org.hibernate.mapping.Collection collection) |
|
public void |
setCollection(org.hibernate.mapping.Collection collection, java.lang.String path) |
|
public void |
setHibernateCollection(org.hibernate.mapping.Collection collection) |
|
public boolean |
shouldBindWithForeignKey()
|
|
public void |
validateOwningSide() |
Returns the component type for this to-many collection, or null if it cannot be
determined.
The cascade behavior implied by this to-many property's shape, absent an explicit cascade mapping. Self-contained: every fact this needs (basic-ness, Map-typedness, embedded
collection-ness, ownership, circularity) is already exposed by this interface or inherited
from the GORM Association hierarchy, so no external dispatch is required.
Resolves the associated root entity's table name for use as a join-table foreign-key column
prefix. The result is a column-identifier fragment, never a literal, quotable SQL identifier -
so the Groovy backtick-quoting convention is always invalid there and must be stripped once
here, rather than trusted to the caller (a prior bug left the foreign key malformed as
`quoted_table`_id).
Only reached for a unidirectional hasMany join table (via CollectionWithJoinTableBinder).
A bidirectional many-to-many join table's foreign-key columns instead go through
DefaultColumnNameFetcher#resolveForeignKeyForPropertyDomainClass, unaffected by this method.