Hi!
Is there a possibility in ibatis to use a constant
along with a column as composite keys.
Example:
<resultMap id="something" class="something">
<result property="id" column="PRD_ID" />
<result property="name_en" column="{id=LANG_PRD_ID,lang="en"}"
select="get-product-name" />
<result property="name_fr" column="{id=LANG_PRD_ID,lang="fr"}"
select="get-product-name" />
</resultMap>
In the example I would like to select the name_en object from another select
that
takes "id" and "lang" as parameters. Name_en and name_fr are both of the
same class.
Everything works ok, except that I cant get the parameters "en" and "fr" to
work.
Thanks in advance,
Peter Wik