Re: Please help with mapping Ibatis

2009-03-31 Thread Ingmar Lötzsch
I have a class public class Part{ private Integer id; private String name; private Bar bar; getters/setters } I have a mapping for part and for there part I am adding aliases for column names after join. I am sure it is not correct way to do it. Please advice how to do

Re: Please help with mapping Ibatis

2009-03-31 Thread AlexElba
So only way is to do with aliases? No way I can reuse the already mapped dto other then remap it? Ingmar Lötzsch wrote: I have a class public class Part{ private Integer id; private String name; private Bar bar; getters/setters } I have a mapping for part and for there

Re: Please help with mapping Ibatis

2009-03-31 Thread Ingmar Lötzsch
So only way is to do with aliases? No way I can reuse the already mapped dto other then remap it? You can use the select attribute instead of resultMap. You can combine this with lazy loading. Ingmar