qiusuo-fuyuan / qiusuo-backend

0 stars 0 forks source link

QiuSuo-CommunityService ORM Support For MySQL R2DBC #122

Open ryan-zheng-teki opened 3 years ago

ryan-zheng-teki commented 3 years ago

User Story This task is to use a third party library to support automatic schema generation, relation handling based on R2DBC. We will use this third party library for usage. https://github.com/lecousin/lc-spring-data-r2dbc I think what this library does is more or less moving the functionalities from JPA to R2DBC

In JPA, we are able to generate the schema based on Annotations. We also need to support that otherwise, we have to create the tables and columns by ourselves.

Design: Currently the Table annotation is provided by the spring-data-relational. We have to add functionality to automatic scan of these annotations and generate the schema based on the configuration. a. We can actually do this in the ApplicationContext finished event listener