ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marco Berri <marco.be...@bluestudio.it>
Subject Dimamy ResultMap
Date Wed, 28 Dec 2005 16:31:54 GMT
Hello!

Is Possible generate a dynamic resultmap for field ?

es.

<resultMap id="Map_A"  class="org.tnes.storage.db.IbatisDataMap">
	<result property="a"  column="a" javaType="java.lang.Integer" />
	<result property="b" column="b" javaType="java.lang.String" />
</resultMap>

<statement id="getBook" resultMap="Map_A">
	select a, b, $fields_b$ from t1
</statemente>

Where the fields_b is "d, e"

The resultMap return fields "d" and "e" ?
How i Mapping the field not specify in resultMap ?

Thank's

Marco Berri

Mime
View raw message