Hi all, I seem to recall that it was possible to fetch to-many relationships using ColumnSelect. However, if I attempt to do something like this…
public static void main( String[] args ) { List<Object[]> list = ObjectSelect .query( Receipt.class ) .columns( Receipt.UNIQUE_ID, Receipt.ENTRIES ) .where( Receipt.USER.dot( User.NAME ).eq( "Hugi Þórðarson" ) ) .select( StrimillinnCore.newContext() ); for( Object[] row : list ) { System.out.println( Arrays.asList( row ) ); } } …the fetch will fail with a ClassCastException ([Ljava.lang.Object; cannot be cast to org.apache.cayenne.DataRow). Any other way to do it? Or am I misremembering that this was possible? Cheers, - hugi