#421 - Elevate R2DBC example to top level project.

Moved r2dbc example to a top-level project. Switched to new Spring Data R2DBC project coordinates.

Original pull request: #422.
This commit is contained in:
Oliver Gierke
2018-10-17 16:57:54 +02:00
committed by Mark Paluch
parent 28dd3d8728
commit d2eb42dad1
10 changed files with 37 additions and 8 deletions

View File

@@ -82,6 +82,10 @@ We have separate folders for the samples of individual modules:
* `basic` - Basic usage of Spring Data JDBC.
## Spring Data R2DBC
* `example` - Basic usage of Spring Data R2DBC.
## Miscellaneous
* `bom` - Example project how to use the Spring Data release train bom in non-Spring-Boot scenarios.

View File

@@ -19,7 +19,6 @@
<modules>
<module>basics</module>
<module>mybatis</module>
<module>r2dbc</module>
<module>jooq</module>
</modules>

View File

@@ -26,6 +26,7 @@
<module>mongodb</module>
<module>multi-store</module>
<module>neo4j</module>
<module>r2dbc</module>
<module>rest</module>
<module>redis</module>
<module>solr</module>

17
r2dbc/example/pom.xml Normal file
View File

@@ -0,0 +1,17 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.data.examples</groupId>
<artifactId>spring-data-r2dbc-examples</artifactId>
<version>2.0.0.BUILD-SNAPSHOT</version>
</parent>
<artifactId>spring-data-r2dbc-example</artifactId>
<name>Spring Data R2DBC - Example</name>
</project>

View File

@@ -17,7 +17,7 @@ package example.springdata.r2dbc.basics;
import reactor.core.publisher.Flux;
import org.springframework.data.jdbc.repository.query.Query;
import org.springframework.data.r2dbc.repository.query.Query;
import org.springframework.data.repository.reactive.ReactiveCrudRepository;
/**

View File

@@ -1,17 +1,24 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>spring-data-r2dbc-examples</artifactId>
<packaging>pom</packaging>
<parent>
<groupId>org.springframework.data.examples</groupId>
<artifactId>spring-data-jdbc-examples</artifactId>
<artifactId>spring-data-examples</artifactId>
<version>2.0.0.BUILD-SNAPSHOT</version>
</parent>
<artifactId>spring-data-r2dbc</artifactId>
<name>Spring Data R2DBC - Examples</name>
<description>Sample projects for Spring Data R2DBC</description>
<name>Spring Data JDBC - Demonstrating reactive repositories with R2DBC</name>
<inceptionYear>2018</inceptionYear>
<modules>
<module>example</module>
</modules>
<properties>
<reactor-bom.version>Californium-RELEASE</reactor-bom.version>
@@ -21,8 +28,8 @@
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-jdbc</artifactId>
<version>1.0.0.r2dbc-SNAPSHOT</version>
<artifactId>spring-data-r2dbc</artifactId>
<version>1.0.0.BUILD-SNAPSHOT</version>
</dependency>
<dependency>
@@ -61,4 +68,5 @@
</dependency>
</dependencies>
</project>