I want to map a nested object with one select query.
For example:
// parent class
public class Parent {
private String name;
private Child child;
}
// child class
public class Child {
private name;
}
And I want to get whole parent class with one select query.
For example:
SELECT P.NAME, C.NAME from PARENT P, CHILD C
This is just example, please ignore specific grammar.
Is this possible?
C.NAMEe.g.SELECT P.NAME, C.NAME C_NAME from .... For mapping, see the doc. It's explained as "nested results".