Hi Ilko,
Yes, some generated select statements reference Base_Column_List, but
it shouldn't be a problem because ${alias} will be an empty string if
there is no property defined.
So, for example, with a Base_Column_List like this
<sql id="Base_Column_List">
${alias}col1, ${alias}col2
</sql>
, generated select such as...
select
<include refid="Base_Column_List" />
from ...
will execute...
select col1, col2 from ...
In reality, though, Base_Column_List may need column aliases as well.
<sql id="Base_Column_List">
${alias}col1 as ${prefix}col1, ${alias}col2 as ${prefix}co2
</sql>
Let us know how it goes :-)
Cheers,
Iwao
2016-04-03 5:24 GMT+09:00 Ilko <
ilkom...@gmail.com>:
> I'll give it a try on Monday. However, if the memory serves me well I think that the generated selectById statements are referencing the Base_Column_List. Nevertheless, I can use the idea as a starting point - I think we could create a copy of the whole element as an Aliased_Base_Column_List...
> Thanks for sharing the idea.
>
> --
> You received this message because you are subscribed to the Google Groups "mybatis-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
mybatis-user...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.