sqlmap - set a map to a parameterclass in iBatis -


what's difference between setting map , setting object parameterclass in ibatis?

means,

<update id="update" parameterclass="map">     update city      set province_id = #province_id#     id = #id#  </update> 

and

<update id="update" parameterclass="city">     update city      set province_id = #province_id#     id = #id#  </update> 

?

i not find difference when tested both.

i want set "map", scared ...

"map" in parameterclass="map" alias "java.util.map". don't think because city class implements map interface?


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -