Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting column names for resultMap - Ibatis  RSS feed

 
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
Boost this thread!