Ability to reuse the same resultMap for different column names
--------------------------------------------------------------
Key: IBATISNET-284
URL: https://issues.apache.org/jira/browse/IBATISNET-284
Project: iBatis for .NET
Issue Type: New Feature
Components: DataMapper
Affects Versions: DataMapper 1.6.1
Reporter: Andrew Gniadek
Priority: Minor
It would be nice (if there isn't a way already) to be able to reuse the same
resultMap more than once for a given query. Something like the following:
<resultMap id="foo" class="Foo">
<result property="Bar" column="bar" />
</resultMap>
<resultMap id="fizz"class="Fizz">
<result property="Foo1" column="bar=bar1" resultMapping="foo" />
<result property="Foo2" column="bar=bar2" resultMapping="foo" />
<result property="Foo3" column="bar=bar3" resultMapping="foo" />
</resultMap>
<statement id="selectFizz" resultMap="fizz">
SELECT bar1, bar2, bar3 FROM FIZZ
</statement>
I'm using the syntax for composite keys here, but for a resultMapping instead
of a select.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.