标签:parameter java 数列 ota table system util 名称 文件中
public ShopCustom(Integer id, String shopName, String shopDesc) {
|
public interface ShopMapperCustom {
|
<resultMap id="shopResultMapConstructor" type="ShopCustom">
<select id="getShopByIdConstructor" parameterType="int" resultMap="shopResultMapConstructor" >
|
@Test
|
2018-12-29 11:53:04,097 [main] DEBUG [io.github.coinsjack.dao.ShopMapperCustom] - Cache Hit Ratio [io.github.coinsjack.dao.ShopMapperCustom]: 0.0 2018-12-29 11:53:04,484 [main] DEBUG [io.github.coinsjack.dao.ShopMapperCustom.getShopByIdConstructor] - ==> Preparing: select `shop_id`, `shop_name`, `shop_desc` from tb_shop where `shop_id` = ? 2018-12-29 11:53:04,576 [main] DEBUG [io.github.coinsjack.dao.ShopMapperCustom.getShopByIdConstructor] - ==> Parameters: 29(Integer) 2018-12-29 11:53:04,649 [main] DEBUG [io.github.coinsjack.dao.ShopMapperCustom.getShopByIdConstructor] - <== Total: 1 ShopCustom{shopName=‘暴漫奶茶店‘, shopDesc=‘过来喝喝就知道啦,你是我的奶茶‘} |
Mybatis学习第22节 -- 高级结果映射 构造方法映射
标签:parameter java 数列 ota table system util 名称 文件中
原文地址:https://www.cnblogs.com/litran/p/10546254.html