auditMappedBy = propertyValue.getMappedByProperty();
queryLoaderName = collectionBinding.getLoaderName(); isMutable = collectionBinding.isMutable(); mappedByProperty = collectionBinding.getMappedByProperty();
protected boolean tryFinishInitialize( Collection bootDescriptor, RuntimeModelCreationContext creationContext) { final String mappedBy = bootDescriptor.getMappedByProperty(); if ( StringHelper.isEmpty( mappedBy ) ) { foreignKeyTargetNavigable = getEntityDescriptor().getIdentifierDescriptor(); } else { foreignKeyTargetNavigable = getEntityDescriptor().findNavigable( mappedBy ); } assert foreignKeyTargetNavigable != null; // Resolve the foreign-key from the boot-model based on the entity primary table. // In the case of an entity that owns the many-side of a one-to-many collection that uses a join-table, // this guarantees we get the ForeignKey for the foreignKeyTargetNavigable. this.foreignKey = resolveForeignKey( bootDescriptor, getEntityDescriptor().getPrimaryTable(), creationContext ); return true; }
String mappedByPath = collectionValue.getMappedByProperty(); if ( referencedEntityName != null && mappedByPath != null && !mappedByPath.isEmpty() ) { collector.collect(
this.hasOrphanDeletes = collectionBinding.hasOrphanDelete(); this.inverse = collectionBinding.isInverse(); this.mappedBy = collectionBinding.getMappedByProperty();
auditMappedBy = propertyValue.getMappedByProperty();