else {
//collection persister
if ( getCollectionPersisters().length != 1 ) {
throw new AssertionFailure( "Found an unexpected number of collection persisters: " + getCollectionPersisters().length );
}
final OgmCollectionPersister persister = (OgmCollectionPersister) getCollectionPersisters()[0];
AssociationPersister associationPersister = new AssociationPersister(
persister.getOwnerEntityPersister().getMappedClass()
)
.gridDialect( gridDialect )
.key( id )
.keyGridType( persister.getKeyGridType() )
.collectionPersister( persister )
.associationKeyMetadata( persister.getAssociationKeyMetadata() )
.session( session );
Association assoc = associationPersister.getAssociationOrNull();
if ( assoc != null ) {
for ( RowKey rowKey : assoc.getKeys() ) {
resultset.addTuple( assoc.get( rowKey ) );