private void updateHostingEntityIfRequired() {
		if ( hostingEntity != null && hostingEntityRequiresReadAfterUpdate() ) {
			OgmEntityPersister entityPersister = getHostingEntityPersister();

			if ( GridDialects.hasFacet( gridDialect, GroupingByEntityDialect.class ) ) {
				( (GroupingByEntityDialect) gridDialect ).flushPendingOperations( getAssociationKey().getEntityKey(),
						entityPersister.getTupleContext( session ) );
			}

			entityPersister.processUpdateGeneratedProperties(
					entityPersister.getIdentifier( hostingEntity, session ),
					hostingEntity,
					new Object[entityPersister.getPropertyNames().length],
					session
			);
		}
	}
private void updateHostingEntityIfRequired ( ) { if ( hostingEntity != null && hostingEntityRequiresReadAfterUpdate ( ) ) { OgmEntityPersister entityPersister = getHostingEntityPersister ( ) ; if ( GridDialects . hasFacet ( gridDialect , GroupingByEntityDialect . class ) ) { ( ( GroupingByEntityDialect ) gridDialect ) . flushPendingOperations ( getAssociationKey ( ) . getEntityKey ( ) , entityPersister . getTupleContext ( session ) ) ; } entityPersister . processUpdateGeneratedProperties ( entityPersister . getIdentifier ( hostingEntity , session ) , hostingEntity , new Object [ entityPersister . getPropertyNames ( ) . length ] , session ) ; } }
Reads the entity hosting the association from the datastore and applies any property changes from the server
side.