For example i have DTOs for my father and child classes :
class FatherDTO() {
//some properties
Object[] childs = null;
}
class ChildDTO() {
//some properties
FatherDTO father;
}
Noticed i am using Object[] array instead of Set because my DTOs are used in my Axis web services. Morever
i don't know how to map a Set in Axis wsdd. So how can i do for populating
my DTOs with a POJO. I am looking for this king of function :
Father pojoFather = hibernateSession.load(Father.class, fatherId);
FatherDTO dtoFather = new FatherDTO();
copyDTOForPOJO(dtoFather , pojoFather );
Max, do you what i mean now ? We make a function which uses reflexion but
the function is cycling because the relationship between a father and a chid.
|