随笔分类 - mybatis
摘要:<collection property="orderList" ofType="cn.java.entity.Order"> 字段 </collection> <resultMap id="baseResultMap" type="com.foen.cloud.entity.SeriesDataE
阅读全文
摘要:0.加jar包 1.a.BAT java -jar E:\GZH\Mybaits\mybatis-generator-core-1.3.2\lib\mybatis-generator-core-1.3.2.jar -configfile E:\GZH\Mybaits\mybatis-generato
阅读全文
摘要:一对一的关联关系(*)返回值结果映射:type,数据返回结果类型,id,别名,《resultMap type=cn.java.entity.hs ,id=""》<reslut property ="",javaTYpe="",column jdbcType=""></resultMap>
阅读全文
摘要:
阅读全文
摘要:1·myBatis快速生成模板! window -》prefer
阅读全文
摘要:mybatis insert update delete返回都是整型 0,1, 没有扔 增,删,改要提交事物
阅读全文
摘要:<typeAliases> <package name="com.jinuo.bd.entity"/> <package name="com.jinuo.bd.dto"/> </typeAliases> session.selectList()多条,session.selectOne(路径,参数);
阅读全文
摘要:1.加jar包,2个jar包(mybatis,jar,mybatis-connet-java.jar) 2.配置xml,properils 3.书写sql语句即**.xml 4.启动测试 @Testpublic void getAllUser(){//1.启动mybatis框架//SqlSessio
阅读全文