老师,我对resultMap还不是很明白
@Results(id="all",value = {
@Result(id = true,column = "id",property = "id"),
@Result(column = "title",property = "title"),
@Result(column = "cid",property = "cid"),
@Result(column = "image_path",property = "imagePath"),
@Result(column = "price",property = "price"),
@Result(column = "taste",property = "taste"),
@Result(column = "sweetness",property = "sweetness"),
@Result(column = "weight",property = "weight"),
@Result(column = "size",property = "size"),
@Result(column = "material",property = "material"),
@Result(column = "status",property = "status"),
@Result(column = "ctitle",property = "catalog.title")
})
@ResultMap("all")
16
收起
正在回答 回答被采纳积分+1
2回答
3. Java 数据库开发与实战应用
- 参与学习 人
- 提交作业 357 份
- 解答问题 8016 个
本阶段将带你学习MySQL数据库,JDBC接口,MyBatis框架等,带你掌握的数据的存放和管理。
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星