ValueMapping val = field.getElementMapping();
final ClassMapping[] vals = val.getIndependentTypeMappings();
Union union = store.getSQLFactory().newUnion(vals.length);
if (fetch.getSubclassFetchMode(val.getTypeMapping())
!= JDBCFetchConfiguration.EAGER_JOIN)
union.abortUnion();
union.setLRS(lrs);
union.select(new Union.Selector() {
public void select(Select sel, int idx) {
joins[1] = selectAll(sel, vals[idx], sm, store, fetch,
eagerMode);