}
@Override
public void foundCircularAssociation(AssociationAttributeDefinition attributeDefinition) {
// todo : use this information to create the BiDirectionalEntityFetch instances
final AssociationKey associationKey = attributeDefinition.getAssociationKey();
final FetchOwner fetchOwner = fetchedAssociationKeyOwnerMap.get( associationKey );
if ( fetchOwner == null ) {
throw new IllegalStateException(
String.format(
"Expecting AssociationKey->FetchOwner mapping for %s",
associationKey.toString()
)
);
}
currentFetchOwner().addFetch( new CircularFetch( currentFetchOwner(), fetchOwner, attributeDefinition ) );