diff --git a/.editorconfig b/.editorconfig index ee76204..d72a75e 100644 --- a/.editorconfig +++ b/.editorconfig @@ -19,7 +19,7 @@ insert_final_newline = true [*.{bat, cmd}] end_of_line = crlf -[*.{java, gradle, groovy, kt, sh, xml}] +[*.{java, gradle, groovy, kt, sh}] indent_size = 4 [*.md] diff --git a/codes/javadb/elasticsearch/elasticsearch7/pom.xml b/codes/javadb/elasticsearch/elasticsearch7/pom.xml new file mode 100644 index 0000000..bd4e66b --- /dev/null +++ b/codes/javadb/elasticsearch/elasticsearch7/pom.xml @@ -0,0 +1,87 @@ + + + 4.0.0 + + + org.springframework.boot + spring-boot-starter-parent + 2.6.3 + + + io.github.dunwu + javadb-elasticsearch7 + 1.0.0 + jar + + + 7.16.3 + + + + + org.springframework.boot + spring-boot-starter-data-elasticsearch + + + org.springframework.boot + spring-boot-starter-json + + + org.springframework.boot + spring-boot-starter-test + test + + + + org.projectlombok + lombok + + + cn.hutool + hutool-all + 5.7.20 + + + + co.elastic.clients + elasticsearch-java + 7.16.3 + + + + org.elasticsearch.client + elasticsearch-rest-client + ${elasticsearch.version} + + + org.elasticsearch.client + elasticsearch-rest-high-level-client + ${elasticsearch.version} + + + + + + + com.fasterxml.jackson.core + jackson-databind + 2.12.3 + + + com.fasterxml.jackson.core + jackson-core + 2.12.3 + + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + diff --git a/codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/SpringBootDataElasticsearchApplication.java b/codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/SpringBootDataElasticsearchApplication.java similarity index 100% rename from codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/SpringBootDataElasticsearchApplication.java rename to codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/SpringBootDataElasticsearchApplication.java diff --git a/codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/constant/NamingStrategy.java b/codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/constant/NamingStrategy.java similarity index 100% rename from codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/constant/NamingStrategy.java rename to codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/constant/NamingStrategy.java diff --git a/codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/constant/OrderType.java b/codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/constant/OrderType.java similarity index 100% rename from codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/constant/OrderType.java rename to codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/constant/OrderType.java diff --git a/codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/constant/QueryJudgeType.java b/codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/constant/QueryJudgeType.java similarity index 100% rename from codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/constant/QueryJudgeType.java rename to codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/constant/QueryJudgeType.java diff --git a/codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/constant/QueryLogicType.java b/codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/constant/QueryLogicType.java similarity index 100% rename from codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/constant/QueryLogicType.java rename to codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/constant/QueryLogicType.java diff --git a/codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/elasticsearch/ElasticSearchUtil.java b/codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/elasticsearch/ElasticSearchUtil.java similarity index 100% rename from codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/elasticsearch/ElasticSearchUtil.java rename to codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/elasticsearch/ElasticSearchUtil.java diff --git a/codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/elasticsearch/QueryDocument.java b/codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/elasticsearch/QueryDocument.java similarity index 100% rename from codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/elasticsearch/QueryDocument.java rename to codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/elasticsearch/QueryDocument.java diff --git a/codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/elasticsearch/QueryField.java b/codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/elasticsearch/QueryField.java similarity index 100% rename from codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/elasticsearch/QueryField.java rename to codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/elasticsearch/QueryField.java diff --git a/codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/Article.java b/codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/Article.java similarity index 100% rename from codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/Article.java rename to codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/Article.java diff --git a/codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/ArticleBuilder.java b/codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/ArticleBuilder.java similarity index 100% rename from codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/ArticleBuilder.java rename to codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/ArticleBuilder.java diff --git a/codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/Author.java b/codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/Author.java similarity index 100% rename from codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/Author.java rename to codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/Author.java diff --git a/codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/Book.java b/codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/Book.java similarity index 100% rename from codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/Book.java rename to codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/Book.java diff --git a/codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/Car.java b/codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/Car.java similarity index 100% rename from codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/Car.java rename to codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/Car.java diff --git a/codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/GirlFriend.java b/codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/GirlFriend.java similarity index 100% rename from codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/GirlFriend.java rename to codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/GirlFriend.java diff --git a/codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/Operation.java b/codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/Operation.java similarity index 100% rename from codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/Operation.java rename to codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/Operation.java diff --git a/codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/Person.java b/codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/Person.java similarity index 100% rename from codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/Person.java rename to codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/Person.java diff --git a/codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/PersonMultipleLevelNested.java b/codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/PersonMultipleLevelNested.java similarity index 100% rename from codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/PersonMultipleLevelNested.java rename to codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/PersonMultipleLevelNested.java diff --git a/codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/Product.java b/codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/Product.java similarity index 100% rename from codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/Product.java rename to codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/Product.java diff --git a/codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/Sector.java b/codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/Sector.java similarity index 100% rename from codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/Sector.java rename to codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/Sector.java diff --git a/codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/User.java b/codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/User.java similarity index 100% rename from codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/User.java rename to codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/User.java diff --git a/codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/UserQuery.java b/codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/UserQuery.java similarity index 100% rename from codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/UserQuery.java rename to codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/entities/UserQuery.java diff --git a/codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/repositories/ArticleRepository.java b/codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/repositories/ArticleRepository.java similarity index 100% rename from codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/repositories/ArticleRepository.java rename to codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/repositories/ArticleRepository.java diff --git a/codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/repositories/BookRepository.java b/codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/repositories/BookRepository.java similarity index 100% rename from codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/repositories/BookRepository.java rename to codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/repositories/BookRepository.java diff --git a/codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/repositories/OperationRepository.java b/codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/repositories/OperationRepository.java similarity index 100% rename from codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/repositories/OperationRepository.java rename to codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/repositories/OperationRepository.java diff --git a/codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/repositories/ProductRepository.java b/codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/repositories/ProductRepository.java similarity index 100% rename from codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/repositories/ProductRepository.java rename to codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/repositories/ProductRepository.java diff --git a/codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/repositories/UserRepository.java b/codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/repositories/UserRepository.java similarity index 100% rename from codes/javadb/javadb-elasticsearch/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/repositories/UserRepository.java rename to codes/javadb/elasticsearch/elasticsearch7/src/main/java/io/github/dunwu/javadb/elasticsearch/springboot/repositories/UserRepository.java diff --git a/codes/javadb/javadb-elasticsearch/src/main/resources/application.properties b/codes/javadb/elasticsearch/elasticsearch7/src/main/resources/application.properties similarity index 100% rename from codes/javadb/javadb-elasticsearch/src/main/resources/application.properties rename to codes/javadb/elasticsearch/elasticsearch7/src/main/resources/application.properties diff --git a/codes/javadb/javadb-elasticsearch/src/main/resources/banner.txt b/codes/javadb/elasticsearch/elasticsearch7/src/main/resources/banner.txt similarity index 100% rename from codes/javadb/javadb-elasticsearch/src/main/resources/banner.txt rename to codes/javadb/elasticsearch/elasticsearch7/src/main/resources/banner.txt diff --git a/codes/javadb/javadb-elasticsearch/src/main/resources/logback.xml b/codes/javadb/elasticsearch/elasticsearch7/src/main/resources/logback.xml similarity index 100% rename from codes/javadb/javadb-elasticsearch/src/main/resources/logback.xml rename to codes/javadb/elasticsearch/elasticsearch7/src/main/resources/logback.xml diff --git a/codes/javadb/javadb-elasticsearch/src/test/java/io/github/dunwu/javadb/elasticsearch/springboot/RestHighLevelClientDocumentApiTest.java b/codes/javadb/elasticsearch/elasticsearch7/src/test/java/io/github/dunwu/javadb/elasticsearch/springboot/RestHighLevelClientDocumentApiTest.java similarity index 100% rename from codes/javadb/javadb-elasticsearch/src/test/java/io/github/dunwu/javadb/elasticsearch/springboot/RestHighLevelClientDocumentApiTest.java rename to codes/javadb/elasticsearch/elasticsearch7/src/test/java/io/github/dunwu/javadb/elasticsearch/springboot/RestHighLevelClientDocumentApiTest.java diff --git a/codes/javadb/javadb-elasticsearch/src/test/java/io/github/dunwu/javadb/elasticsearch/springboot/RestHighLevelClientDocumentSearchApiTest.java b/codes/javadb/elasticsearch/elasticsearch7/src/test/java/io/github/dunwu/javadb/elasticsearch/springboot/RestHighLevelClientDocumentSearchApiTest.java similarity index 100% rename from codes/javadb/javadb-elasticsearch/src/test/java/io/github/dunwu/javadb/elasticsearch/springboot/RestHighLevelClientDocumentSearchApiTest.java rename to codes/javadb/elasticsearch/elasticsearch7/src/test/java/io/github/dunwu/javadb/elasticsearch/springboot/RestHighLevelClientDocumentSearchApiTest.java diff --git a/codes/javadb/javadb-elasticsearch/src/test/java/io/github/dunwu/javadb/elasticsearch/springboot/RestHighLevelClientIndexApiTest.java b/codes/javadb/elasticsearch/elasticsearch7/src/test/java/io/github/dunwu/javadb/elasticsearch/springboot/RestHighLevelClientIndexApiTest.java similarity index 100% rename from codes/javadb/javadb-elasticsearch/src/test/java/io/github/dunwu/javadb/elasticsearch/springboot/RestHighLevelClientIndexApiTest.java rename to codes/javadb/elasticsearch/elasticsearch7/src/test/java/io/github/dunwu/javadb/elasticsearch/springboot/RestHighLevelClientIndexApiTest.java diff --git a/codes/javadb/javadb-elasticsearch/src/test/java/io/github/dunwu/javadb/elasticsearch/springboot/RestLowLevelClientTest.java b/codes/javadb/elasticsearch/elasticsearch7/src/test/java/io/github/dunwu/javadb/elasticsearch/springboot/RestLowLevelClientTest.java similarity index 100% rename from codes/javadb/javadb-elasticsearch/src/test/java/io/github/dunwu/javadb/elasticsearch/springboot/RestLowLevelClientTest.java rename to codes/javadb/elasticsearch/elasticsearch7/src/test/java/io/github/dunwu/javadb/elasticsearch/springboot/RestLowLevelClientTest.java diff --git a/codes/javadb/javadb-elasticsearch/src/test/java/io/github/dunwu/javadb/elasticsearch/springboot/entity/ecommerce/Geoip.java b/codes/javadb/elasticsearch/elasticsearch7/src/test/java/io/github/dunwu/javadb/elasticsearch/springboot/entity/ecommerce/Geoip.java similarity index 100% rename from codes/javadb/javadb-elasticsearch/src/test/java/io/github/dunwu/javadb/elasticsearch/springboot/entity/ecommerce/Geoip.java rename to codes/javadb/elasticsearch/elasticsearch7/src/test/java/io/github/dunwu/javadb/elasticsearch/springboot/entity/ecommerce/Geoip.java diff --git a/codes/javadb/javadb-elasticsearch/src/test/java/io/github/dunwu/javadb/elasticsearch/springboot/entity/ecommerce/KibanaSampleDataEcommerceBean.java b/codes/javadb/elasticsearch/elasticsearch7/src/test/java/io/github/dunwu/javadb/elasticsearch/springboot/entity/ecommerce/KibanaSampleDataEcommerceBean.java similarity index 100% rename from codes/javadb/javadb-elasticsearch/src/test/java/io/github/dunwu/javadb/elasticsearch/springboot/entity/ecommerce/KibanaSampleDataEcommerceBean.java rename to codes/javadb/elasticsearch/elasticsearch7/src/test/java/io/github/dunwu/javadb/elasticsearch/springboot/entity/ecommerce/KibanaSampleDataEcommerceBean.java diff --git a/codes/javadb/javadb-elasticsearch/src/test/java/io/github/dunwu/javadb/elasticsearch/springboot/entity/ecommerce/Location.java b/codes/javadb/elasticsearch/elasticsearch7/src/test/java/io/github/dunwu/javadb/elasticsearch/springboot/entity/ecommerce/Location.java similarity index 100% rename from codes/javadb/javadb-elasticsearch/src/test/java/io/github/dunwu/javadb/elasticsearch/springboot/entity/ecommerce/Location.java rename to codes/javadb/elasticsearch/elasticsearch7/src/test/java/io/github/dunwu/javadb/elasticsearch/springboot/entity/ecommerce/Location.java diff --git a/codes/javadb/javadb-elasticsearch/src/test/java/io/github/dunwu/javadb/elasticsearch/springboot/entity/ecommerce/ProductsItem.java b/codes/javadb/elasticsearch/elasticsearch7/src/test/java/io/github/dunwu/javadb/elasticsearch/springboot/entity/ecommerce/ProductsItem.java similarity index 100% rename from codes/javadb/javadb-elasticsearch/src/test/java/io/github/dunwu/javadb/elasticsearch/springboot/entity/ecommerce/ProductsItem.java rename to codes/javadb/elasticsearch/elasticsearch7/src/test/java/io/github/dunwu/javadb/elasticsearch/springboot/entity/ecommerce/ProductsItem.java diff --git a/codes/javadb/elasticsearch/pom.xml b/codes/javadb/elasticsearch/pom.xml new file mode 100644 index 0000000..0e4e04a --- /dev/null +++ b/codes/javadb/elasticsearch/pom.xml @@ -0,0 +1,14 @@ + + + 4.0.0 + + io.github.dunwu + javadb-elasticsearch + 1.0.0 + pom + + + elasticsearch7 + + diff --git a/codes/javadb/h2/pom.xml b/codes/javadb/h2/pom.xml new file mode 100644 index 0000000..b7d0920 --- /dev/null +++ b/codes/javadb/h2/pom.xml @@ -0,0 +1,53 @@ + + + 4.0.0 + + + org.springframework.boot + spring-boot-starter-parent + 2.6.3 + + + io.github.dunwu + javadb-h2 + 1.0.0 + jar + + + + org.springframework.boot + spring-boot-starter-data-rest + + + org.springframework.boot + spring-boot-starter-data-jpa + + + org.springframework.boot + spring-boot-starter-test + test + + + org.projectlombok + lombok + + + + + com.h2database + h2 + 2.1.210 + + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + diff --git a/codes/javadb/javadb-h2/src/main/java/io/github/dunwu/javadb/h2/springboot/SpringBootDataJpaApplication.java b/codes/javadb/h2/src/main/java/io/github/dunwu/javadb/h2/springboot/SpringBootDataJpaApplication.java similarity index 100% rename from codes/javadb/javadb-h2/src/main/java/io/github/dunwu/javadb/h2/springboot/SpringBootDataJpaApplication.java rename to codes/javadb/h2/src/main/java/io/github/dunwu/javadb/h2/springboot/SpringBootDataJpaApplication.java diff --git a/codes/javadb/javadb-h2/src/main/java/io/github/dunwu/javadb/h2/springboot/User.java b/codes/javadb/h2/src/main/java/io/github/dunwu/javadb/h2/springboot/User.java similarity index 100% rename from codes/javadb/javadb-h2/src/main/java/io/github/dunwu/javadb/h2/springboot/User.java rename to codes/javadb/h2/src/main/java/io/github/dunwu/javadb/h2/springboot/User.java diff --git a/codes/javadb/javadb-h2/src/main/java/io/github/dunwu/javadb/h2/springboot/UserRepository.java b/codes/javadb/h2/src/main/java/io/github/dunwu/javadb/h2/springboot/UserRepository.java similarity index 100% rename from codes/javadb/javadb-h2/src/main/java/io/github/dunwu/javadb/h2/springboot/UserRepository.java rename to codes/javadb/h2/src/main/java/io/github/dunwu/javadb/h2/springboot/UserRepository.java diff --git a/codes/javadb/javadb-h2/src/main/resources/application.properties b/codes/javadb/h2/src/main/resources/application.properties similarity index 100% rename from codes/javadb/javadb-h2/src/main/resources/application.properties rename to codes/javadb/h2/src/main/resources/application.properties diff --git a/codes/javadb/javadb-h2/src/main/resources/banner.txt b/codes/javadb/h2/src/main/resources/banner.txt similarity index 100% rename from codes/javadb/javadb-h2/src/main/resources/banner.txt rename to codes/javadb/h2/src/main/resources/banner.txt diff --git a/codes/javadb/javadb-h2/src/main/resources/logback.xml b/codes/javadb/h2/src/main/resources/logback.xml similarity index 100% rename from codes/javadb/javadb-h2/src/main/resources/logback.xml rename to codes/javadb/h2/src/main/resources/logback.xml diff --git a/codes/javadb/javadb-h2/src/main/resources/sql/data-h2.sql b/codes/javadb/h2/src/main/resources/sql/data-h2.sql similarity index 100% rename from codes/javadb/javadb-h2/src/main/resources/sql/data-h2.sql rename to codes/javadb/h2/src/main/resources/sql/data-h2.sql diff --git a/codes/javadb/javadb-h2/src/main/resources/sql/schema-h2.sql b/codes/javadb/h2/src/main/resources/sql/schema-h2.sql similarity index 100% rename from codes/javadb/javadb-h2/src/main/resources/sql/schema-h2.sql rename to codes/javadb/h2/src/main/resources/sql/schema-h2.sql diff --git a/codes/javadb/javadb-h2/src/test/java/io/github/dunwu/javadb/h2/H2JdbcTest.java b/codes/javadb/h2/src/test/java/io/github/dunwu/javadb/h2/H2JdbcTest.java similarity index 100% rename from codes/javadb/javadb-h2/src/test/java/io/github/dunwu/javadb/h2/H2JdbcTest.java rename to codes/javadb/h2/src/test/java/io/github/dunwu/javadb/h2/H2JdbcTest.java diff --git a/codes/javadb/javadb-h2/src/test/java/io/github/dunwu/javadb/h2/springboot/SpringBootJpaRestTest.java b/codes/javadb/h2/src/test/java/io/github/dunwu/javadb/h2/springboot/SpringBootJpaRestTest.java similarity index 100% rename from codes/javadb/javadb-h2/src/test/java/io/github/dunwu/javadb/h2/springboot/SpringBootJpaRestTest.java rename to codes/javadb/h2/src/test/java/io/github/dunwu/javadb/h2/springboot/SpringBootJpaRestTest.java diff --git a/codes/javadb/javadb-h2/src/test/java/io/github/dunwu/javadb/h2/springboot/SpringBootJpaTest.java b/codes/javadb/h2/src/test/java/io/github/dunwu/javadb/h2/springboot/SpringBootJpaTest.java similarity index 100% rename from codes/javadb/javadb-h2/src/test/java/io/github/dunwu/javadb/h2/springboot/SpringBootJpaTest.java rename to codes/javadb/h2/src/test/java/io/github/dunwu/javadb/h2/springboot/SpringBootJpaTest.java diff --git a/codes/javadb/hbase/pom.xml b/codes/javadb/hbase/pom.xml new file mode 100644 index 0000000..4db1f12 --- /dev/null +++ b/codes/javadb/hbase/pom.xml @@ -0,0 +1,63 @@ + + + 4.0.0 + io.github.dunwu + javadb-hbase + 1.0.0 + jar + + + UTF-8 + 1.8 + ${java.version} + ${java.version} + + 1.3.1 + 4.13.1 + 0.5.7 + + + + + org.apache.hbase + hbase-client + + + io.github.dunwu + dunwu-tool-core + + + + + junit + junit + + + + + + + + org.apache.hbase + hbase-client + ${hbase.version} + + + io.github.dunwu + dunwu-tool-core + ${dunwu.version} + + + + + junit + junit + ${junit.version} + test + + + + + diff --git a/codes/javadb/javadb-hbase/src/main/java/io/github/dunwu/javadb/hbase/HBaseConstant.java b/codes/javadb/hbase/src/main/java/io/github/dunwu/javadb/hbase/HBaseConstant.java similarity index 100% rename from codes/javadb/javadb-hbase/src/main/java/io/github/dunwu/javadb/hbase/HBaseConstant.java rename to codes/javadb/hbase/src/main/java/io/github/dunwu/javadb/hbase/HBaseConstant.java diff --git a/codes/javadb/javadb-hbase/src/main/java/io/github/dunwu/javadb/hbase/HbaseCellEntity.java b/codes/javadb/hbase/src/main/java/io/github/dunwu/javadb/hbase/HbaseCellEntity.java similarity index 100% rename from codes/javadb/javadb-hbase/src/main/java/io/github/dunwu/javadb/hbase/HbaseCellEntity.java rename to codes/javadb/hbase/src/main/java/io/github/dunwu/javadb/hbase/HbaseCellEntity.java diff --git a/codes/javadb/javadb-hbase/src/main/java/io/github/dunwu/javadb/hbase/HbaseHelper.java b/codes/javadb/hbase/src/main/java/io/github/dunwu/javadb/hbase/HbaseHelper.java similarity index 100% rename from codes/javadb/javadb-hbase/src/main/java/io/github/dunwu/javadb/hbase/HbaseHelper.java rename to codes/javadb/hbase/src/main/java/io/github/dunwu/javadb/hbase/HbaseHelper.java diff --git a/codes/javadb/javadb-hbase/src/main/java/io/github/dunwu/javadb/hbase/HbaseProperties.java b/codes/javadb/hbase/src/main/java/io/github/dunwu/javadb/hbase/HbaseProperties.java similarity index 100% rename from codes/javadb/javadb-hbase/src/main/java/io/github/dunwu/javadb/hbase/HbaseProperties.java rename to codes/javadb/hbase/src/main/java/io/github/dunwu/javadb/hbase/HbaseProperties.java diff --git a/codes/javadb/javadb-hbase/src/test/java/io/github/dunwu/javadb/hbase/HbaseHelperTest.java b/codes/javadb/hbase/src/test/java/io/github/dunwu/javadb/hbase/HbaseHelperTest.java similarity index 98% rename from codes/javadb/javadb-hbase/src/test/java/io/github/dunwu/javadb/hbase/HbaseHelperTest.java rename to codes/javadb/hbase/src/test/java/io/github/dunwu/javadb/hbase/HbaseHelperTest.java index c79aaa5..a6fbf74 100644 --- a/codes/javadb/javadb-hbase/src/test/java/io/github/dunwu/javadb/hbase/HbaseHelperTest.java +++ b/codes/javadb/hbase/src/test/java/io/github/dunwu/javadb/hbase/HbaseHelperTest.java @@ -1,6 +1,5 @@ package io.github.dunwu.javadb.hbase; -import io.github.dunwu.javadb.hbase.HbaseHelper; import org.apache.hadoop.hbase.HTableDescriptor; import org.apache.hadoop.hbase.client.Result; import org.junit.Assert; diff --git a/codes/javadb/javadb-hbase/src/test/resources/config/hbase.properties b/codes/javadb/hbase/src/test/resources/config/hbase.properties similarity index 100% rename from codes/javadb/javadb-hbase/src/test/resources/config/hbase.properties rename to codes/javadb/hbase/src/test/resources/config/hbase.properties diff --git a/codes/javadb/javadb-elasticsearch/pom.xml b/codes/javadb/javadb-elasticsearch/pom.xml deleted file mode 100644 index ab483b6..0000000 --- a/codes/javadb/javadb-elasticsearch/pom.xml +++ /dev/null @@ -1,87 +0,0 @@ - - - 4.0.0 - - - org.springframework.boot - spring-boot-starter-parent - 2.6.3 - - - io.github.dunwu - javadb-elasticsearch - 1.0.0 - jar - - - 7.16.3 - - - - - org.springframework.boot - spring-boot-starter-data-elasticsearch - - - org.springframework.boot - spring-boot-starter-json - - - org.springframework.boot - spring-boot-starter-test - test - - - - org.projectlombok - lombok - - - cn.hutool - hutool-all - 5.7.20 - - - - co.elastic.clients - elasticsearch-java - 7.16.3 - - - - org.elasticsearch.client - elasticsearch-rest-client - ${elasticsearch.version} - - - org.elasticsearch.client - elasticsearch-rest-high-level-client - ${elasticsearch.version} - - - - - - - com.fasterxml.jackson.core - jackson-databind - 2.12.3 - - - com.fasterxml.jackson.core - jackson-core - 2.12.3 - - - - - - - - org.springframework.boot - spring-boot-maven-plugin - - - - diff --git a/codes/javadb/javadb-h2/pom.xml b/codes/javadb/javadb-h2/pom.xml deleted file mode 100644 index 5660fec..0000000 --- a/codes/javadb/javadb-h2/pom.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - 4.0.0 - - - org.springframework.boot - spring-boot-starter-parent - 2.6.3 - - - io.github.dunwu - javadb-h2 - 1.0.0 - jar - - - - org.springframework.boot - spring-boot-starter-data-rest - - - org.springframework.boot - spring-boot-starter-data-jpa - - - org.springframework.boot - spring-boot-starter-test - test - - - org.projectlombok - lombok - - - - - com.h2database - h2 - 2.1.210 - - - - - - - - org.springframework.boot - spring-boot-maven-plugin - - - - diff --git a/codes/javadb/javadb-hbase/pom.xml b/codes/javadb/javadb-hbase/pom.xml deleted file mode 100644 index 76d12d0..0000000 --- a/codes/javadb/javadb-hbase/pom.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - 4.0.0 - io.github.dunwu - javadb-hbase - 1.0.0 - jar - - - UTF-8 - 1.8 - ${java.version} - ${java.version} - - 1.3.1 - 4.13.1 - 0.5.7 - - - - - org.apache.hbase - hbase-client - - - io.github.dunwu - dunwu-tool-core - - - - - junit - junit - - - - - - - - org.apache.hbase - hbase-client - ${hbase.version} - - - io.github.dunwu - dunwu-tool-core - ${dunwu.version} - - - - - junit - junit - ${junit.version} - test - - - - - diff --git a/codes/javadb/javadb-mongodb/pom.xml b/codes/javadb/javadb-mongodb/pom.xml deleted file mode 100644 index 864c6dc..0000000 --- a/codes/javadb/javadb-mongodb/pom.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - 4.0.0 - - - org.springframework.boot - spring-boot-starter-parent - 2.6.3 - - - io.github.dunwu - javadb-mongodb - 1.0.0 - jar - - - - org.springframework.boot - spring-boot-starter-data-mongodb - - - org.springframework.boot - spring-boot-starter-json - - - org.springframework.boot - spring-boot-starter-test - test - - - - org.projectlombok - lombok - - - cn.hutool - hutool-all - 5.7.20 - - - - com.querydsl - querydsl-mongodb - - - org.mongodb - mongo-java-drver - - - - - io.projectreactor - reactor-core - 3.4.14 - - - - junit - junit - test - - - - - - - org.springframework.boot - spring-boot-maven-plugin - - - - diff --git a/codes/javadb/javadb-mysql/pom.xml b/codes/javadb/javadb-mysql/pom.xml deleted file mode 100644 index 808030e..0000000 --- a/codes/javadb/javadb-mysql/pom.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - 4.0.0 - - - org.springframework.boot - spring-boot-starter-parent - 2.6.3 - - - io.github.dunwu - javadb-mysql - 1.0.0 - jar - - - - org.springframework.boot - spring-boot-starter-jdbc - - - org.springframework.boot - spring-boot-starter-test - test - - - mysql - mysql-connector-java - - - org.projectlombok - lombok - - - - - - - org.springframework.boot - spring-boot-maven-plugin - - - - diff --git a/codes/javadb/javadb-redis/pom.xml b/codes/javadb/javadb-redis/pom.xml deleted file mode 100644 index b58fc4a..0000000 --- a/codes/javadb/javadb-redis/pom.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - 4.0.0 - - - org.springframework.boot - spring-boot-starter-parent - 2.6.3 - - - io.github.dunwu - javadb-redis - 1.0.0 - jar - - - 3.7.2 - - - - - org.springframework.boot - spring-boot-starter-data-redis - - - org.springframework.boot - spring-boot-starter-json - - - org.springframework.boot - spring-boot-starter-test - test - - - - cn.hutool - hutool-all - 5.5.9 - - - org.projectlombok - lombok - - - - - redis.clients - jedis - - - org.redisson - redisson - 3.16.8 - - - - - junit - junit - test - - - - - - - org.redisson - redisson - ${redisson.version} - - - - - - - - org.springframework.boot - spring-boot-maven-plugin - - - - diff --git a/codes/javadb/javadb-sqlite/pom.xml b/codes/javadb/javadb-sqlite/pom.xml deleted file mode 100644 index c335c5d..0000000 --- a/codes/javadb/javadb-sqlite/pom.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - 4.0.0 - - - org.springframework.boot - spring-boot-starter-parent - 2.6.3 - - - io.github.dunwu - javadb-sqlite - 1.0.0 - jar - - - - org.springframework.boot - spring-boot-starter-jdbc - - - org.springframework.boot - spring-boot-starter-test - test - - - - org.projectlombok - lombok - - - - - org.xerial - sqlite-jdbc - 3.36.0.2 - - - - - - - - org.springframework.boot - spring-boot-maven-plugin - - - - diff --git a/codes/javadb/mongodb/pom.xml b/codes/javadb/mongodb/pom.xml new file mode 100644 index 0000000..1c6c2c2 --- /dev/null +++ b/codes/javadb/mongodb/pom.xml @@ -0,0 +1,73 @@ + + + 4.0.0 + + + org.springframework.boot + spring-boot-starter-parent + 2.6.3 + + + io.github.dunwu + javadb-mongodb + 1.0.0 + jar + + + + org.springframework.boot + spring-boot-starter-data-mongodb + + + org.springframework.boot + spring-boot-starter-json + + + org.springframework.boot + spring-boot-starter-test + test + + + + org.projectlombok + lombok + + + cn.hutool + hutool-all + 5.7.20 + + + + com.querydsl + querydsl-mongodb + + + org.mongodb + mongo-java-drver + + + + + io.projectreactor + reactor-core + 3.4.14 + + + + junit + junit + test + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + diff --git a/codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/SpringBootDataMongodbApplication.java b/codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/SpringBootDataMongodbApplication.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/SpringBootDataMongodbApplication.java rename to codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/SpringBootDataMongodbApplication.java diff --git a/codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/advanced/AdvancedRepository.java b/codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/advanced/AdvancedRepository.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/advanced/AdvancedRepository.java rename to codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/advanced/AdvancedRepository.java diff --git a/codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/advanced/ApplicationConfiguration.java b/codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/advanced/ApplicationConfiguration.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/advanced/ApplicationConfiguration.java rename to codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/advanced/ApplicationConfiguration.java diff --git a/codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/ApplicationConfiguration.java b/codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/ApplicationConfiguration.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/ApplicationConfiguration.java rename to codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/ApplicationConfiguration.java diff --git a/codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/Invoice.java b/codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/Invoice.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/Invoice.java rename to codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/Invoice.java diff --git a/codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/LineItem.java b/codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/LineItem.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/LineItem.java rename to codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/LineItem.java diff --git a/codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/Order.java b/codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/Order.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/Order.java rename to codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/Order.java diff --git a/codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/OrderRepository.java b/codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/OrderRepository.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/OrderRepository.java rename to codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/OrderRepository.java diff --git a/codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/OrderRepositoryCustom.java b/codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/OrderRepositoryCustom.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/OrderRepositoryCustom.java rename to codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/OrderRepositoryCustom.java diff --git a/codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/OrderRepositoryImpl.java b/codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/OrderRepositoryImpl.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/OrderRepositoryImpl.java rename to codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/OrderRepositoryImpl.java diff --git a/codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/OrdersPerCustomer.java b/codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/OrdersPerCustomer.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/OrdersPerCustomer.java rename to codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/OrdersPerCustomer.java diff --git a/codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/customer/Address.java b/codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/customer/Address.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/customer/Address.java rename to codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/customer/Address.java diff --git a/codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/customer/ApplicationConfiguration.java b/codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/customer/ApplicationConfiguration.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/customer/ApplicationConfiguration.java rename to codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/customer/ApplicationConfiguration.java diff --git a/codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/customer/Customer.java b/codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/customer/Customer.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/customer/Customer.java rename to codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/customer/Customer.java diff --git a/codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/customer/CustomerRepository.java b/codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/customer/CustomerRepository.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/customer/CustomerRepository.java rename to codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/customer/CustomerRepository.java diff --git a/codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/immutable/ApplicationConfiguration.java b/codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/immutable/ApplicationConfiguration.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/immutable/ApplicationConfiguration.java rename to codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/immutable/ApplicationConfiguration.java diff --git a/codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/immutable/ImmutablePerson.java b/codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/immutable/ImmutablePerson.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/immutable/ImmutablePerson.java rename to codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/immutable/ImmutablePerson.java diff --git a/codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/projections/Customer.java b/codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/projections/Customer.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/projections/Customer.java rename to codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/projections/Customer.java diff --git a/codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/projections/CustomerDto.java b/codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/projections/CustomerDto.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/projections/CustomerDto.java rename to codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/projections/CustomerDto.java diff --git a/codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/projections/CustomerProjection.java b/codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/projections/CustomerProjection.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/projections/CustomerProjection.java rename to codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/projections/CustomerProjection.java diff --git a/codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/projections/CustomerRepository.java b/codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/projections/CustomerRepository.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/projections/CustomerRepository.java rename to codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/projections/CustomerRepository.java diff --git a/codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/projections/CustomerSummary.java b/codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/projections/CustomerSummary.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/projections/CustomerSummary.java rename to codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/projections/CustomerSummary.java diff --git a/codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/ApplicationConfiguration.java b/codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/ApplicationConfiguration.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/ApplicationConfiguration.java rename to codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/ApplicationConfiguration.java diff --git a/codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/Contact.java b/codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/Contact.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/Contact.java rename to codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/Contact.java diff --git a/codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/ContactRepository.java b/codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/ContactRepository.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/ContactRepository.java rename to codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/ContactRepository.java diff --git a/codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/Person.java b/codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/Person.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/Person.java rename to codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/Person.java diff --git a/codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/Relative.java b/codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/Relative.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/Relative.java rename to codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/Relative.java diff --git a/codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/RelativeRepository.java b/codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/RelativeRepository.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/RelativeRepository.java rename to codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/RelativeRepository.java diff --git a/codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/UserRepository.java b/codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/UserRepository.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/UserRepository.java rename to codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/UserRepository.java diff --git a/codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/package-info.java b/codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/package-info.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/package-info.java rename to codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/package-info.java diff --git a/codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/textsearch/BlogPost.java b/codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/textsearch/BlogPost.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/textsearch/BlogPost.java rename to codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/textsearch/BlogPost.java diff --git a/codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/textsearch/BlogPostRepository.java b/codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/textsearch/BlogPostRepository.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/textsearch/BlogPostRepository.java rename to codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/textsearch/BlogPostRepository.java diff --git a/codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/textsearch/MongoTestConfiguration.java b/codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/textsearch/MongoTestConfiguration.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/textsearch/MongoTestConfiguration.java rename to codes/javadb/mongodb/src/main/java/io/github/dunwu/javadb/mongodb/springboot/textsearch/MongoTestConfiguration.java diff --git a/codes/javadb/javadb-mongodb/src/main/resources/application.properties b/codes/javadb/mongodb/src/main/resources/application.properties similarity index 100% rename from codes/javadb/javadb-mongodb/src/main/resources/application.properties rename to codes/javadb/mongodb/src/main/resources/application.properties diff --git a/codes/javadb/javadb-mongodb/src/main/resources/banner.txt b/codes/javadb/mongodb/src/main/resources/banner.txt similarity index 100% rename from codes/javadb/javadb-mongodb/src/main/resources/banner.txt rename to codes/javadb/mongodb/src/main/resources/banner.txt diff --git a/codes/javadb/javadb-mongodb/src/main/resources/db/books.json b/codes/javadb/mongodb/src/main/resources/db/books.json similarity index 100% rename from codes/javadb/javadb-mongodb/src/main/resources/db/books.json rename to codes/javadb/mongodb/src/main/resources/db/books.json diff --git a/codes/javadb/javadb-mongodb/src/main/resources/db/products.json b/codes/javadb/mongodb/src/main/resources/db/products.json similarity index 100% rename from codes/javadb/javadb-mongodb/src/main/resources/db/products.json rename to codes/javadb/mongodb/src/main/resources/db/products.json diff --git a/codes/javadb/javadb-mongodb/src/main/resources/db/students.json b/codes/javadb/mongodb/src/main/resources/db/students.json similarity index 100% rename from codes/javadb/javadb-mongodb/src/main/resources/db/students.json rename to codes/javadb/mongodb/src/main/resources/db/students.json diff --git a/codes/javadb/javadb-mongodb/src/main/resources/logback.xml b/codes/javadb/mongodb/src/main/resources/logback.xml similarity index 100% rename from codes/javadb/javadb-mongodb/src/main/resources/logback.xml rename to codes/javadb/mongodb/src/main/resources/logback.xml diff --git a/codes/javadb/javadb-mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/advanced/AdvancedIntegrationTests.java b/codes/javadb/mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/advanced/AdvancedIntegrationTests.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/advanced/AdvancedIntegrationTests.java rename to codes/javadb/mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/advanced/AdvancedIntegrationTests.java diff --git a/codes/javadb/javadb-mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/advanced/package-info.java b/codes/javadb/mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/advanced/package-info.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/advanced/package-info.java rename to codes/javadb/mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/advanced/package-info.java diff --git a/codes/javadb/javadb-mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/OrderRepositoryIntegrationTests.java b/codes/javadb/mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/OrderRepositoryIntegrationTests.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/OrderRepositoryIntegrationTests.java rename to codes/javadb/mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/OrderRepositoryIntegrationTests.java diff --git a/codes/javadb/javadb-mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/SpringBooksIntegrationTests.java b/codes/javadb/mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/SpringBooksIntegrationTests.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/SpringBooksIntegrationTests.java rename to codes/javadb/mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/aggregation/SpringBooksIntegrationTests.java diff --git a/codes/javadb/javadb-mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/customer/CustomerRepositoryIntegrationTest.java b/codes/javadb/mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/customer/CustomerRepositoryIntegrationTest.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/customer/CustomerRepositoryIntegrationTest.java rename to codes/javadb/mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/customer/CustomerRepositoryIntegrationTest.java diff --git a/codes/javadb/javadb-mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/customer/package-info.java b/codes/javadb/mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/customer/package-info.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/customer/package-info.java rename to codes/javadb/mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/customer/package-info.java diff --git a/codes/javadb/javadb-mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/immutable/ImmutableEntityIntegrationTest.java b/codes/javadb/mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/immutable/ImmutableEntityIntegrationTest.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/immutable/ImmutableEntityIntegrationTest.java rename to codes/javadb/mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/immutable/ImmutableEntityIntegrationTest.java diff --git a/codes/javadb/javadb-mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/projections/CustomerRepositoryIntegrationTest.java b/codes/javadb/mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/projections/CustomerRepositoryIntegrationTest.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/projections/CustomerRepositoryIntegrationTest.java rename to codes/javadb/mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/projections/CustomerRepositoryIntegrationTest.java diff --git a/codes/javadb/javadb-mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/ContactRepositoryIntegrationTests.java b/codes/javadb/mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/ContactRepositoryIntegrationTests.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/ContactRepositoryIntegrationTests.java rename to codes/javadb/mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/ContactRepositoryIntegrationTests.java diff --git a/codes/javadb/javadb-mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/MongoOperationsIntegrationTests.java b/codes/javadb/mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/MongoOperationsIntegrationTests.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/MongoOperationsIntegrationTests.java rename to codes/javadb/mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/MongoOperationsIntegrationTests.java diff --git a/codes/javadb/javadb-mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/UserRepositoryIntegrationTests.java b/codes/javadb/mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/UserRepositoryIntegrationTests.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/UserRepositoryIntegrationTests.java rename to codes/javadb/mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/querybyexample/UserRepositoryIntegrationTests.java diff --git a/codes/javadb/javadb-mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/textsearch/TextSearchRepositoryTests.java b/codes/javadb/mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/textsearch/TextSearchRepositoryTests.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/textsearch/TextSearchRepositoryTests.java rename to codes/javadb/mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/textsearch/TextSearchRepositoryTests.java diff --git a/codes/javadb/javadb-mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/textsearch/TextSearchTemplateTests.java b/codes/javadb/mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/textsearch/TextSearchTemplateTests.java similarity index 96% rename from codes/javadb/javadb-mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/textsearch/TextSearchTemplateTests.java rename to codes/javadb/mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/textsearch/TextSearchTemplateTests.java index 6f50b0e..5b6cc98 100644 --- a/codes/javadb/javadb-mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/textsearch/TextSearchTemplateTests.java +++ b/codes/javadb/mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/textsearch/TextSearchTemplateTests.java @@ -15,7 +15,6 @@ */ package io.github.dunwu.javadb.mongodb.springboot.textsearch; -import io.github.dunwu.javadb.mongodb.springboot.SpringBootDataMongodbApplication; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; diff --git a/codes/javadb/javadb-mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/textsearch/util/BlogPostInitializer.java b/codes/javadb/mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/textsearch/util/BlogPostInitializer.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/textsearch/util/BlogPostInitializer.java rename to codes/javadb/mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/textsearch/util/BlogPostInitializer.java diff --git a/codes/javadb/javadb-mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/textsearch/util/ConsoleResultPrinter.java b/codes/javadb/mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/textsearch/util/ConsoleResultPrinter.java similarity index 100% rename from codes/javadb/javadb-mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/textsearch/util/ConsoleResultPrinter.java rename to codes/javadb/mongodb/src/test/java/io/github/dunwu/javadb/mongodb/springboot/textsearch/util/ConsoleResultPrinter.java diff --git a/codes/javadb/javadb-mongodb/src/test/resources/spring-blog.atom.json b/codes/javadb/mongodb/src/test/resources/spring-blog.atom.json similarity index 100% rename from codes/javadb/javadb-mongodb/src/test/resources/spring-blog.atom.json rename to codes/javadb/mongodb/src/test/resources/spring-blog.atom.json diff --git a/codes/javadb/mysql/pom.xml b/codes/javadb/mysql/pom.xml new file mode 100644 index 0000000..c314b06 --- /dev/null +++ b/codes/javadb/mysql/pom.xml @@ -0,0 +1,45 @@ + + + 4.0.0 + + + org.springframework.boot + spring-boot-starter-parent + 2.6.3 + + + io.github.dunwu + javadb-mysql + 1.0.0 + jar + + + + org.springframework.boot + spring-boot-starter-jdbc + + + org.springframework.boot + spring-boot-starter-test + test + + + mysql + mysql-connector-java + + + org.projectlombok + lombok + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + diff --git a/codes/javadb/javadb-mysql/src/main/java/io/github/dunwu/javadb/mysql/springboot/SpringBootDataJdbcApplication.java b/codes/javadb/mysql/src/main/java/io/github/dunwu/javadb/mysql/springboot/SpringBootDataJdbcApplication.java similarity index 100% rename from codes/javadb/javadb-mysql/src/main/java/io/github/dunwu/javadb/mysql/springboot/SpringBootDataJdbcApplication.java rename to codes/javadb/mysql/src/main/java/io/github/dunwu/javadb/mysql/springboot/SpringBootDataJdbcApplication.java diff --git a/codes/javadb/javadb-mysql/src/main/java/io/github/dunwu/javadb/mysql/springboot/User.java b/codes/javadb/mysql/src/main/java/io/github/dunwu/javadb/mysql/springboot/User.java similarity index 100% rename from codes/javadb/javadb-mysql/src/main/java/io/github/dunwu/javadb/mysql/springboot/User.java rename to codes/javadb/mysql/src/main/java/io/github/dunwu/javadb/mysql/springboot/User.java diff --git a/codes/javadb/javadb-mysql/src/main/java/io/github/dunwu/javadb/mysql/springboot/UserDao.java b/codes/javadb/mysql/src/main/java/io/github/dunwu/javadb/mysql/springboot/UserDao.java similarity index 100% rename from codes/javadb/javadb-mysql/src/main/java/io/github/dunwu/javadb/mysql/springboot/UserDao.java rename to codes/javadb/mysql/src/main/java/io/github/dunwu/javadb/mysql/springboot/UserDao.java diff --git a/codes/javadb/javadb-mysql/src/main/java/io/github/dunwu/javadb/mysql/springboot/UserDaoExecutor.java b/codes/javadb/mysql/src/main/java/io/github/dunwu/javadb/mysql/springboot/UserDaoExecutor.java similarity index 100% rename from codes/javadb/javadb-mysql/src/main/java/io/github/dunwu/javadb/mysql/springboot/UserDaoExecutor.java rename to codes/javadb/mysql/src/main/java/io/github/dunwu/javadb/mysql/springboot/UserDaoExecutor.java diff --git a/codes/javadb/javadb-mysql/src/main/java/io/github/dunwu/javadb/mysql/springboot/UserDaoImpl.java b/codes/javadb/mysql/src/main/java/io/github/dunwu/javadb/mysql/springboot/UserDaoImpl.java similarity index 100% rename from codes/javadb/javadb-mysql/src/main/java/io/github/dunwu/javadb/mysql/springboot/UserDaoImpl.java rename to codes/javadb/mysql/src/main/java/io/github/dunwu/javadb/mysql/springboot/UserDaoImpl.java diff --git a/codes/javadb/javadb-mysql/src/main/resources/application.properties b/codes/javadb/mysql/src/main/resources/application.properties similarity index 100% rename from codes/javadb/javadb-mysql/src/main/resources/application.properties rename to codes/javadb/mysql/src/main/resources/application.properties diff --git a/codes/javadb/javadb-mysql/src/main/resources/banner.txt b/codes/javadb/mysql/src/main/resources/banner.txt similarity index 100% rename from codes/javadb/javadb-mysql/src/main/resources/banner.txt rename to codes/javadb/mysql/src/main/resources/banner.txt diff --git a/codes/javadb/javadb-mysql/src/main/resources/logback.xml b/codes/javadb/mysql/src/main/resources/logback.xml similarity index 100% rename from codes/javadb/javadb-mysql/src/main/resources/logback.xml rename to codes/javadb/mysql/src/main/resources/logback.xml diff --git a/codes/javadb/javadb-mysql/src/main/resources/sql/data.sql b/codes/javadb/mysql/src/main/resources/sql/data.sql similarity index 100% rename from codes/javadb/javadb-mysql/src/main/resources/sql/data.sql rename to codes/javadb/mysql/src/main/resources/sql/data.sql diff --git a/codes/javadb/javadb-mysql/src/main/resources/sql/schema.sql b/codes/javadb/mysql/src/main/resources/sql/schema.sql similarity index 100% rename from codes/javadb/javadb-mysql/src/main/resources/sql/schema.sql rename to codes/javadb/mysql/src/main/resources/sql/schema.sql diff --git a/codes/javadb/javadb-mysql/src/test/java/io/github/dunwu/javadb/mysql/springboot/MysqlDemoTest.java b/codes/javadb/mysql/src/test/java/io/github/dunwu/javadb/mysql/springboot/MysqlDemoTest.java similarity index 100% rename from codes/javadb/javadb-mysql/src/test/java/io/github/dunwu/javadb/mysql/springboot/MysqlDemoTest.java rename to codes/javadb/mysql/src/test/java/io/github/dunwu/javadb/mysql/springboot/MysqlDemoTest.java diff --git a/codes/javadb/javadb-mysql/src/test/java/io/github/dunwu/javadb/mysql/springboot/SpringBootDataJdbcTest.java b/codes/javadb/mysql/src/test/java/io/github/dunwu/javadb/mysql/springboot/SpringBootDataJdbcTest.java similarity index 100% rename from codes/javadb/javadb-mysql/src/test/java/io/github/dunwu/javadb/mysql/springboot/SpringBootDataJdbcTest.java rename to codes/javadb/mysql/src/test/java/io/github/dunwu/javadb/mysql/springboot/SpringBootDataJdbcTest.java diff --git a/codes/javadb/pom.xml b/codes/javadb/pom.xml index f5b5399..865dca8 100644 --- a/codes/javadb/pom.xml +++ b/codes/javadb/pom.xml @@ -1,20 +1,20 @@ - 4.0.0 + 4.0.0 - io.github.dunwu - javadb - 1.0.0 - pom + io.github.dunwu + javadb + 1.0.0 + pom - - javadb-h2 - javadb-hbase - javadb-mysql - javadb-redis - javadb-sqlite - javadb-mongodb - javadb-elasticsearch - + + h2 + hbase + mysql + redis + sqlite + mongodb + elasticsearch + diff --git a/codes/javadb/redis/pom.xml b/codes/javadb/redis/pom.xml new file mode 100644 index 0000000..e847e9c --- /dev/null +++ b/codes/javadb/redis/pom.xml @@ -0,0 +1,83 @@ + + + 4.0.0 + + + org.springframework.boot + spring-boot-starter-parent + 2.6.3 + + + io.github.dunwu + javadb-redis + 1.0.0 + jar + + + 3.7.2 + + + + + org.springframework.boot + spring-boot-starter-data-redis + + + org.springframework.boot + spring-boot-starter-json + + + org.springframework.boot + spring-boot-starter-test + test + + + + cn.hutool + hutool-all + 5.5.9 + + + org.projectlombok + lombok + + + + + redis.clients + jedis + + + org.redisson + redisson + 3.16.8 + + + + + junit + junit + test + + + + + + + org.redisson + redisson + ${redisson.version} + + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + diff --git a/codes/javadb/javadb-redis/src/main/java/io/github/dunwu/javadb/redis/springboot/RedisAutoConfiguration.java b/codes/javadb/redis/src/main/java/io/github/dunwu/javadb/redis/springboot/RedisAutoConfiguration.java similarity index 100% rename from codes/javadb/javadb-redis/src/main/java/io/github/dunwu/javadb/redis/springboot/RedisAutoConfiguration.java rename to codes/javadb/redis/src/main/java/io/github/dunwu/javadb/redis/springboot/RedisAutoConfiguration.java diff --git a/codes/javadb/javadb-redis/src/main/java/io/github/dunwu/javadb/redis/springboot/SpringBootDataRedisApplication.java b/codes/javadb/redis/src/main/java/io/github/dunwu/javadb/redis/springboot/SpringBootDataRedisApplication.java similarity index 100% rename from codes/javadb/javadb-redis/src/main/java/io/github/dunwu/javadb/redis/springboot/SpringBootDataRedisApplication.java rename to codes/javadb/redis/src/main/java/io/github/dunwu/javadb/redis/springboot/SpringBootDataRedisApplication.java diff --git a/codes/javadb/javadb-redis/src/main/java/io/github/dunwu/javadb/redis/springboot/data/User.java b/codes/javadb/redis/src/main/java/io/github/dunwu/javadb/redis/springboot/data/User.java similarity index 100% rename from codes/javadb/javadb-redis/src/main/java/io/github/dunwu/javadb/redis/springboot/data/User.java rename to codes/javadb/redis/src/main/java/io/github/dunwu/javadb/redis/springboot/data/User.java diff --git a/codes/javadb/javadb-redis/src/main/java/io/github/dunwu/javadb/redis/springboot/data/UserService.java b/codes/javadb/redis/src/main/java/io/github/dunwu/javadb/redis/springboot/data/UserService.java similarity index 100% rename from codes/javadb/javadb-redis/src/main/java/io/github/dunwu/javadb/redis/springboot/data/UserService.java rename to codes/javadb/redis/src/main/java/io/github/dunwu/javadb/redis/springboot/data/UserService.java diff --git a/codes/javadb/javadb-redis/src/main/java/io/github/dunwu/javadb/redis/springboot/data/UserServiceImpl.java b/codes/javadb/redis/src/main/java/io/github/dunwu/javadb/redis/springboot/data/UserServiceImpl.java similarity index 100% rename from codes/javadb/javadb-redis/src/main/java/io/github/dunwu/javadb/redis/springboot/data/UserServiceImpl.java rename to codes/javadb/redis/src/main/java/io/github/dunwu/javadb/redis/springboot/data/UserServiceImpl.java diff --git a/codes/javadb/javadb-redis/src/main/resources/application.properties b/codes/javadb/redis/src/main/resources/application.properties similarity index 100% rename from codes/javadb/javadb-redis/src/main/resources/application.properties rename to codes/javadb/redis/src/main/resources/application.properties diff --git a/codes/javadb/javadb-redis/src/main/resources/banner.txt b/codes/javadb/redis/src/main/resources/banner.txt similarity index 100% rename from codes/javadb/javadb-redis/src/main/resources/banner.txt rename to codes/javadb/redis/src/main/resources/banner.txt diff --git a/codes/javadb/javadb-redis/src/main/resources/logback.xml b/codes/javadb/redis/src/main/resources/logback.xml similarity index 100% rename from codes/javadb/javadb-redis/src/main/resources/logback.xml rename to codes/javadb/redis/src/main/resources/logback.xml diff --git a/codes/javadb/javadb-redis/src/test/java/io/github/dunwu/javadb/redis/RedissonStandaloneTest.java b/codes/javadb/redis/src/test/java/io/github/dunwu/javadb/redis/RedissonStandaloneTest.java similarity index 100% rename from codes/javadb/javadb-redis/src/test/java/io/github/dunwu/javadb/redis/RedissonStandaloneTest.java rename to codes/javadb/redis/src/test/java/io/github/dunwu/javadb/redis/RedissonStandaloneTest.java diff --git a/codes/javadb/javadb-redis/src/test/java/io/github/dunwu/javadb/redis/jedis/JedisDemoTest.java b/codes/javadb/redis/src/test/java/io/github/dunwu/javadb/redis/jedis/JedisDemoTest.java similarity index 100% rename from codes/javadb/javadb-redis/src/test/java/io/github/dunwu/javadb/redis/jedis/JedisDemoTest.java rename to codes/javadb/redis/src/test/java/io/github/dunwu/javadb/redis/jedis/JedisDemoTest.java diff --git a/codes/javadb/javadb-redis/src/test/java/io/github/dunwu/javadb/redis/jedis/JedisPoolDemoTest.java b/codes/javadb/redis/src/test/java/io/github/dunwu/javadb/redis/jedis/JedisPoolDemoTest.java similarity index 100% rename from codes/javadb/javadb-redis/src/test/java/io/github/dunwu/javadb/redis/jedis/JedisPoolDemoTest.java rename to codes/javadb/redis/src/test/java/io/github/dunwu/javadb/redis/jedis/JedisPoolDemoTest.java diff --git a/codes/javadb/javadb-redis/src/test/java/io/github/dunwu/javadb/redis/jedis/rank/RankDemo.java b/codes/javadb/redis/src/test/java/io/github/dunwu/javadb/redis/jedis/rank/RankDemo.java similarity index 100% rename from codes/javadb/javadb-redis/src/test/java/io/github/dunwu/javadb/redis/jedis/rank/RankDemo.java rename to codes/javadb/redis/src/test/java/io/github/dunwu/javadb/redis/jedis/rank/RankDemo.java diff --git a/codes/javadb/javadb-redis/src/test/java/io/github/dunwu/javadb/redis/jedis/rank/RankDemoTests.java b/codes/javadb/redis/src/test/java/io/github/dunwu/javadb/redis/jedis/rank/RankDemoTests.java similarity index 100% rename from codes/javadb/javadb-redis/src/test/java/io/github/dunwu/javadb/redis/jedis/rank/RankDemoTests.java rename to codes/javadb/redis/src/test/java/io/github/dunwu/javadb/redis/jedis/rank/RankDemoTests.java diff --git a/codes/javadb/javadb-redis/src/test/java/io/github/dunwu/javadb/redis/jedis/rank/RankElement.java b/codes/javadb/redis/src/test/java/io/github/dunwu/javadb/redis/jedis/rank/RankElement.java similarity index 100% rename from codes/javadb/javadb-redis/src/test/java/io/github/dunwu/javadb/redis/jedis/rank/RankElement.java rename to codes/javadb/redis/src/test/java/io/github/dunwu/javadb/redis/jedis/rank/RankElement.java diff --git a/codes/javadb/javadb-redis/src/test/java/io/github/dunwu/javadb/redis/jedis/rank/RankRegion.java b/codes/javadb/redis/src/test/java/io/github/dunwu/javadb/redis/jedis/rank/RankRegion.java similarity index 100% rename from codes/javadb/javadb-redis/src/test/java/io/github/dunwu/javadb/redis/jedis/rank/RankRegion.java rename to codes/javadb/redis/src/test/java/io/github/dunwu/javadb/redis/jedis/rank/RankRegion.java diff --git a/codes/javadb/javadb-redis/src/test/java/io/github/dunwu/javadb/redis/jedis/rank/RankRegionElement.java b/codes/javadb/redis/src/test/java/io/github/dunwu/javadb/redis/jedis/rank/RankRegionElement.java similarity index 100% rename from codes/javadb/javadb-redis/src/test/java/io/github/dunwu/javadb/redis/jedis/rank/RankRegionElement.java rename to codes/javadb/redis/src/test/java/io/github/dunwu/javadb/redis/jedis/rank/RankRegionElement.java diff --git a/codes/javadb/javadb-redis/src/test/resources/applicationContext.xml b/codes/javadb/redis/src/test/resources/applicationContext.xml similarity index 100% rename from codes/javadb/javadb-redis/src/test/resources/applicationContext.xml rename to codes/javadb/redis/src/test/resources/applicationContext.xml diff --git a/codes/javadb/javadb-redis/src/test/resources/config.xml b/codes/javadb/redis/src/test/resources/config.xml similarity index 100% rename from codes/javadb/javadb-redis/src/test/resources/config.xml rename to codes/javadb/redis/src/test/resources/config.xml diff --git a/codes/javadb/javadb-redis/src/test/resources/properties/application-dev.properties b/codes/javadb/redis/src/test/resources/properties/application-dev.properties similarity index 100% rename from codes/javadb/javadb-redis/src/test/resources/properties/application-dev.properties rename to codes/javadb/redis/src/test/resources/properties/application-dev.properties diff --git a/codes/javadb/javadb-redis/src/test/resources/properties/application-test.properties b/codes/javadb/redis/src/test/resources/properties/application-test.properties similarity index 100% rename from codes/javadb/javadb-redis/src/test/resources/properties/application-test.properties rename to codes/javadb/redis/src/test/resources/properties/application-test.properties diff --git a/codes/javadb/javadb-redis/src/test/resources/properties/application.properties b/codes/javadb/redis/src/test/resources/properties/application.properties similarity index 100% rename from codes/javadb/javadb-redis/src/test/resources/properties/application.properties rename to codes/javadb/redis/src/test/resources/properties/application.properties diff --git a/codes/javadb/javadb-redis/src/test/resources/redis.xml b/codes/javadb/redis/src/test/resources/redis.xml similarity index 100% rename from codes/javadb/javadb-redis/src/test/resources/redis.xml rename to codes/javadb/redis/src/test/resources/redis.xml diff --git a/codes/javadb/javadb-redis/src/test/resources/redisson-standalone.xml b/codes/javadb/redis/src/test/resources/redisson-standalone.xml similarity index 100% rename from codes/javadb/javadb-redis/src/test/resources/redisson-standalone.xml rename to codes/javadb/redis/src/test/resources/redisson-standalone.xml diff --git a/codes/javadb/sqlite/pom.xml b/codes/javadb/sqlite/pom.xml new file mode 100644 index 0000000..0fe9bdc --- /dev/null +++ b/codes/javadb/sqlite/pom.xml @@ -0,0 +1,50 @@ + + + 4.0.0 + + + org.springframework.boot + spring-boot-starter-parent + 2.6.3 + + + io.github.dunwu + javadb-sqlite + 1.0.0 + jar + + + + org.springframework.boot + spring-boot-starter-jdbc + + + org.springframework.boot + spring-boot-starter-test + test + + + + org.projectlombok + lombok + + + + + org.xerial + sqlite-jdbc + 3.36.0.2 + + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + diff --git a/codes/javadb/javadb-sqlite/src/main/java/io/github/dunwu/javadb/sqlite/springboot/SpringBootDataSqliteApplication.java b/codes/javadb/sqlite/src/main/java/io/github/dunwu/javadb/sqlite/springboot/SpringBootDataSqliteApplication.java similarity index 100% rename from codes/javadb/javadb-sqlite/src/main/java/io/github/dunwu/javadb/sqlite/springboot/SpringBootDataSqliteApplication.java rename to codes/javadb/sqlite/src/main/java/io/github/dunwu/javadb/sqlite/springboot/SpringBootDataSqliteApplication.java diff --git a/codes/javadb/javadb-sqlite/src/main/java/io/github/dunwu/javadb/sqlite/springboot/SqliteDemo.java b/codes/javadb/sqlite/src/main/java/io/github/dunwu/javadb/sqlite/springboot/SqliteDemo.java similarity index 100% rename from codes/javadb/javadb-sqlite/src/main/java/io/github/dunwu/javadb/sqlite/springboot/SqliteDemo.java rename to codes/javadb/sqlite/src/main/java/io/github/dunwu/javadb/sqlite/springboot/SqliteDemo.java diff --git a/codes/javadb/javadb-sqlite/src/main/resources/application.properties b/codes/javadb/sqlite/src/main/resources/application.properties similarity index 100% rename from codes/javadb/javadb-sqlite/src/main/resources/application.properties rename to codes/javadb/sqlite/src/main/resources/application.properties diff --git a/codes/javadb/javadb-sqlite/src/main/resources/banner.txt b/codes/javadb/sqlite/src/main/resources/banner.txt similarity index 100% rename from codes/javadb/javadb-sqlite/src/main/resources/banner.txt rename to codes/javadb/sqlite/src/main/resources/banner.txt diff --git a/codes/javadb/javadb-sqlite/src/main/resources/logback.xml b/codes/javadb/sqlite/src/main/resources/logback.xml similarity index 100% rename from codes/javadb/javadb-sqlite/src/main/resources/logback.xml rename to codes/javadb/sqlite/src/main/resources/logback.xml