sqlmap support resultMap for abstract class
-------------------------------------------
Key: IBATIS-278
URL: http://issues.apache.org/jira/browse/IBATIS-278
Project: iBatis for Java
Type: Improvement
Components: SQL Maps
Versions: 2.1.7
Reporter: ron riley
Priority: Minor
please allow for abstract superclasses to be mapped in resultMaps, to support,
for example:
<resultMap class="Animal" id="lazyAnimal">
<result property="name" column="ANIMAL_NAME" />
<discriminator javaType="string" column="ANIMAL_SUBCLASS">
<subMap value="canine" resultMap="canine"/>
<subMap value="feline" resultMap="feline"/>
</discriminator>
</resultMap>
<resultMap class="Feline" id="feline">
<result property="name" column="ANIMAL_NAME" /><!-- dtd
requires a property to be mapped -->
</resultMap>
<resultMap class="Canine" id="canine">
<result property="name" column="ANIMAL_NAME"/>
</resultMap>
at present this example gets an instantiation exception if the Animal class is
abstract.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira