摘要: 因为在订单类(Order)中涉及产品类(Product)的产品名称(ProductName)和产品价格(ProductPrice),所以需要使用联合查询。 1.项目结构: 2.重新定义的实体类代码OrderProduct: public class OrderProduct extends Orde 阅读全文
posted @ 2020-04-22 20:09 pansin 阅读(1420) 评论(0) 推荐(1) 编辑
摘要: 1.添加maven坐标: <!-- MyBatis 逆向工程 --> <dependency> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-core</artifactId> <version>1.3. 阅读全文
posted @ 2020-04-22 16:48 pansin 阅读(796) 评论(0) 推荐(1) 编辑