ibatis-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ron riley (JIRA)" <ibatis-...@incubator.apache.org>
Subject [jira] Created: (IBATIS-278) sqlmap support resultMap for abstract class
Date Wed, 29 Mar 2006 14:53:33 GMT
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"/>
	<resultMap class="Feline" id="feline">
		<result property="name" column="ANIMAL_NAME" /><!-- dtd requires a property to
be mapped -->
	<resultMap class="Canine" id="canine">
		<result property="name" column="ANIMAL_NAME"/>

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:
For more information on JIRA, see:

View raw message