主要功能
连接hana与mysql数据库,实现数据从hana库中同步到mysql中
使用要求
本项目采用mybatis-plus实现对MySQL的crud,当前只实现了从hana库中查出,存入到mysql中;
- 先创建mysql数据库中的表,表结构要跟hana库中表结构相同
- 使用mp生成持久层的crud
- 实体类中第一个字段为序列化ID(必须)因为在具体实现中是从第二个字段开始的
- 当前demo,调用接口需要传入两个内容,sql为:查询hana库的sql,className为对应的实体类名称(注意大小写)
后续内容暂时不准备继续写下去,也有已经实现好的比如treesoft很不错的一个工具,只是因为开发环境原因不能使用,从而开发了这个项目,代码写的比较简单。 如果大家有需要的话,可以直接pr或者联系我一起。