1. mapper xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//ibatis.apache.org//DTD Mapper 3.0//EN" "http://ibatis.apache.org/dtd/ibatis-3-mapper.dtd">
<mapper namespace="BillingDAO">
<select id="findBilling" parameterType="java.util.Map"
resultType="BillingBean">
select * from table
</select>
<update id="updateBilling" parameterType="java.util.Map">
update ..
set ..
where .. = #{..}
</update>
</mapper>
本文深入探讨了MapperXML的使用方式,包括如何通过参数类型和结果类型进行SQL查询和更新操作,以及IBatis框架中mapper配置的重要性。
333

被折叠的 条评论
为什么被折叠?



