<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.ly.boilingwater.modules.gen.dao.SysTableDao">
<sql id="selectSql">
SELECT a.table_name as table_name,
a.table_comment as table_comment,
b.COLUMN_NAME as COLUMN_NAME,
b.column_comment as column_comment,
b.column_type as column_type,
b.column_key as column_key
FROM information_schema.TABLES a
LEFT JOIN information_schema.COLUMNS b ON a.table_name = b.TABLE_NAME
WHERE a.table_schema = 'boiling_water'
<if test="tableName != null and tableName.trim() !=
Mybatis一对多映射
最新推荐文章于 2023-08-03 08:00:00 发布
本文详细介绍了Mybatis中的一对多映射配置和使用,包括配置文件设置、实体类设计、Mapper接口及XML文件的编写,通过实例展示了如何实现从父表获取多个子表数据的操作,帮助读者深入理解Mybatis一对多映射的原理。
摘要由CSDN通过智能技术生成