Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting column names for resultMap - Ibatis

 
arun ramk
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,
I need to get the column names for the properties specified in sqlMap.xml in my code .

for example: <resultMap id="resmap" class="java.util.HashMap">
<result property="custId" column="cust_id"/>
<result property="routerId" column="router_id"/>
<result property="routerName" column="router_name" jdbcType="CLOB"/>
<result property="device_type" column="device_type"/>
</resultMap>

i need to get the column values in code.........

is there anyway to access the sqlMap.xml file as an instance in Ibatis.



Regards,
Arun.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic