> 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
t; -part1 : Part
> -part2 : Part
>
> and want to get a list of bars, you can do the following
>
>
>
>
> ...
>
>
>
> select
> p1.id,
> p1.name,
> b.*,
> p1.id as otherId,
> p1.name as otherName
> from PART p1
> join BAR b on p1.id=b.p1Id
> join PART p2 on p2.id=b.p2Id
>
>
> List list = getSqlMapClientTemplate().queryForList("bar.selectAll");
>
> Ingmar
>
>
--
View this message in context:
http://www.nabble.com/Please-help-with-mapping-Ibatis-tp22796133p22805239.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
> 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 advic
is join more
then one time?
Thanks
--
View this message in context:
http://www.nabble.com/Please-help-with-mapping-Ibatis-tp22796133p22796133.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.