You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2020/11/10 12:45:38 UTC
[GitHub] [shardingsphere] pendaba opened a new issue #8121: When shardingjdbc integrates mybatis, how to realize the dynamic configuration of mapper.xml table name?
pendaba opened a new issue #8121:
URL: https://github.com/apache/shardingsphere/issues/8121
When shardingjdbc integrates mybatis, how to realize the dynamic configuration of mapper.xml table name?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] pendaba commented on issue #8121: When shardingjdbc integrates mybatis, how to realize the dynamic configuration of mapper.xml table name?
Posted by GitBox <gi...@apache.org>.
pendaba commented on issue #8121:
URL: https://github.com/apache/shardingsphere/issues/8121#issuecomment-724680162
like I have two tables;t_use0,t_use1.
<insert id="save">
insert into t_user(name,age,create_date,create_time) values(#{item.name},#{item.age},#{item.createDate},#{item.createTime});
</insert>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] kimmking commented on issue #8121: When shardingjdbc integrates mybatis, how to realize the dynamic configuration of mapper.xml table name?
Posted by GitBox <gi...@apache.org>.
kimmking commented on issue #8121:
URL: https://github.com/apache/shardingsphere/issues/8121#issuecomment-726543415
Hi, @pendaba
shardingsphere-jdbc doesn't need to know mapper xml details, it just parse sql and convert logic table name to actual name before sending to mysql server.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] strongduanmu commented on issue #8121: When shardingjdbc integrates mybatis, how to realize the dynamic configuration of mapper.xml table name?
Posted by GitBox <gi...@apache.org>.
strongduanmu commented on issue #8121:
URL: https://github.com/apache/shardingsphere/issues/8121#issuecomment-724710690
@pendaba You can refer to the [official documentation](https://shardingsphere.apache.org/document/current/cn/user-manual/shardingsphere-jdbc/usage/sharding/java-api/). After the configuration is complete, you can use the logical table like a normal table in mybatis.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] kimmking closed issue #8121: When shardingjdbc integrates mybatis, how to realize the dynamic configuration of mapper.xml table name?
Posted by GitBox <gi...@apache.org>.
kimmking closed issue #8121:
URL: https://github.com/apache/shardingsphere/issues/8121
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] kimmking edited a comment on issue #8121: When shardingjdbc integrates mybatis, how to realize the dynamic configuration of mapper.xml table name?
Posted by GitBox <gi...@apache.org>.
kimmking edited a comment on issue #8121:
URL: https://github.com/apache/shardingsphere/issues/8121#issuecomment-726543415
Hi, @pendaba
shardingsphere-jdbc doesn't need to know mapper xml details, it just parse sql and convert logic table name to actual name according to your sharding rule configuration before sending to mysql server.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org