public class CompositeIdentifierToManyToOneBinder extends java.lang.Object
| Constructor and description |
|---|
CompositeIdentifierToManyToOneBinder(org.hibernate.boot.spi.InFlightMetadataCollector metadataCollector, ForeignKeyColumnCountCalculator foreignKeyColumnCountCalculator, PersistentEntityNamingStrategy namingStrategy, DefaultColumnNameFetcher defaultColumnNameFetcher, BackticksRemover backticksRemover, SimpleValueBinder simpleValueBinder) |
CompositeIdentifierToManyToOneBinder(org.hibernate.boot.spi.MetadataBuildingContext metadataBuildingContext, PersistentEntityNamingStrategy namingStrategy, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
alignWithReferencedIdentifier(HibernatePersistentProperty property, org.hibernate.mapping.SimpleValue value, HibernateCompositeIdentity compositeId, GrailsHibernatePersistentEntity refDomainClass)Aligns the columns of value with the composite identifier of refDomainClass:
sorts them the way Hibernate sorts that identifier, creates the foreign key against the matching
identifier columns and marks the value sorted. |
|
public void |
bindCompositeIdentifierToManyToOne(HibernatePersistentProperty property, org.hibernate.mapping.SimpleValue value, HibernateCompositeIdentity compositeId, GrailsHibernatePersistentEntity refDomainClass, java.lang.String path) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
Aligns the columns of value with the composite identifier of refDomainClass:
sorts them the way Hibernate sorts that identifier, creates the foreign key against the matching
identifier columns and marks the value sorted. A to-one part of the referenced identifier that
still awaits its own alignment is aligned first, because its columns are the columns this key
references. Does nothing for a to-one that is sorted already.
property - the property the key belongs tovalue - the foreign-key value bound for propertycompositeId - the composite identity of the referenced entityrefDomainClass - the referenced entity