public class BidirectionalOneToManyLinker extends java.lang.Object
Links bidirectional one-to-many associations by copying columns. The foreign key of the association belongs to the to-one side, which always creates it: Hibernate's org.hibernate.mapping.ToOne#createForeignKey() for a simple identifier, the composite identifier binder, with the referenced identifier columns, for a composite one. The inverse collection key therefore creates no positional key of its own. For a simple identifier the two keys were the same key already; for a composite identifier they differ, share the implicit name, and only the first one registered reached the schema.
| Constructor and description |
|---|
BidirectionalOneToManyLinker(GrailsPropertyResolver grailsPropertyResolver)Creates a new BidirectionalOneToManyLinker instance. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
link(org.hibernate.mapping.Collection collection, org.hibernate.mapping.PersistentClass associatedClass, org.hibernate.mapping.DependantValue key, HibernatePersistentProperty otherSide)Link. |
| 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) |
Creates a new BidirectionalOneToManyLinker instance.
Link.