Usual way is to map a single query result to a class e.g.
List<MyPojo> p = ctx.fetch("select * from table...").into(MyPojo.class);
But what if I want to build a pojo based on several queries results? Note that some of pojo fields are objects.
class MyPojo{
String field1 - query1
int field2 - query1
List<SomeClass> field3 - query2
SomeClass2 - query3
...
}
Will really appreciate any thoughts.