Skip to content

Commit 3f0ccc2

Browse files
committed
Moved to new namespace
1 parent 8525c14 commit 3f0ccc2

File tree

36 files changed

+64
-60
lines changed

36 files changed

+64
-60
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ stack composed by Spring Boot, Spring Data and Spring HATEOAS.
66

77
Data access variants include:
88

9-
- [JDBC](jdbc/README.md) - using Spring Data JDBC
10-
- [JPA](jpa/README.md) - using Spring Data JPA with Hibernate as ORM provider
11-
- [jOOQ](jooq/README.md) - using Spring Boot with jOOQ (not officially supported by spring-data)
12-
- [MyBatis](mybatis/README.md) - using Spring Data MyBatis/JDBC
9+
- [JDBC](roach-data-jdbc/README.md) - using Spring Data JDBC
10+
- [JPA](roach-data-jpa/README.md) - using Spring Data JPA with Hibernate as ORM provider
11+
- [jOOQ](roach-data-jooq/README.md) - using Spring Boot with jOOQ (not officially supported by spring-data)
12+
- [MyBatis](roach-data-mybatis/README.md) - using Spring Data MyBatis/JDBC
1313

1414
All demos are independent and use the same schema and test workload.
1515

@@ -30,7 +30,7 @@ as time travel / follower reads.
3030

3131
- JDK8+ with 1.8 language level (OpenJDK compatible)
3232
- Maven 3+ (wrapper provided)
33-
- CockroachDB with a database named `roach_demo_data`
33+
- CockroachDB with a database named `roach_data`
3434

3535
## Building
3636

@@ -56,20 +56,20 @@ You could use something like Postman to send requests to the API on your own.
5656

5757
A custom database URL is specified with a config override:
5858

59-
--spring.datasource.url=jdbc:postgresql://192.168.1.99:26257/roach_demo_data?sslmode=disable
59+
--spring.datasource.url=jdbc:postgresql://192.168.1.99:26257/roach_data?sslmode=disable
6060

6161
### JDBC demo
6262

63-
java -jar jdbc/target/roach-demo-data.jar
63+
java -jar roach-data-jdbc/target/roach-data-jdbc.jar
6464

6565
### JPA demo
6666

67-
java -jar jpa/target/roach-demo-data.jar
67+
java -jar roach-data-jpa/target/roach-data-jpa.jar
6868

6969
### jOOQ demo
7070

71-
java -jar jooq/target/roach-demo-data.jar
71+
java -jar roach-data-jooq/target/roach-data-jooq.jar
7272

7373
### MyBatis demo
7474

75-
java -jar mybatis/target/roach-demo-data.jar
75+
java -jar roach-data-mybatis/target/roach-data-mybatis.jar

jooq/src/main/resources/jooq_config.properties

Lines changed: 0 additions & 4 deletions
This file was deleted.

pom.xml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
<relativePath/> <!-- lookup parent from repository -->
1010
</parent>
1111

12-
<groupId>io.roach.demo.data</groupId>
13-
<artifactId>roach-demo-data-parent</artifactId>
12+
<groupId>io.roach.data</groupId>
13+
<artifactId>roach-data-parent</artifactId>
1414
<version>1.0.0.BUILD-SNAPSHOT</version>
1515
<packaging>pom</packaging>
1616

@@ -20,10 +20,10 @@
2020
</properties>
2121

2222
<modules>
23-
<module>jooq</module>
24-
<module>jpa</module>
25-
<module>jdbc</module>
26-
<module>mybatis</module>
23+
<module>roach-data-jooq</module>
24+
<module>roach-data-jpa</module>
25+
<module>roach-data-jdbc</module>
26+
<module>roach-data-mybatis</module>
2727
</modules>
2828

2929
<dependencyManagement>
@@ -55,7 +55,6 @@
5555
</dependencyManagement>
5656

5757
<build>
58-
<finalName>roach-demo-data</finalName>
5958
<pluginManagement>
6059
<plugins>
6160
<plugin>
File renamed without changes.

jdbc/pom.xml renamed to roach-data-jdbc/pom.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
44
<modelVersion>4.0.0</modelVersion>
55
<parent>
6-
<groupId>io.roach.demo.data</groupId>
7-
<artifactId>roach-demo-data-parent</artifactId>
6+
<groupId>io.roach.data</groupId>
7+
<artifactId>roach-data-parent</artifactId>
88
<version>1.0.0.BUILD-SNAPSHOT</version>
99
</parent>
1010

11-
<artifactId>roach-demo-data-jdbc</artifactId>
11+
<artifactId>roach-data-jdbc</artifactId>
1212

1313
<dependencies>
1414
<dependency>
@@ -48,6 +48,7 @@
4848
</dependencies>
4949

5050
<build>
51+
<finalName>roach-data-jdbc</finalName>
5152
<plugins>
5253
<plugin>
5354
<groupId>org.springframework.boot</groupId>

jdbc/src/main/java/io/roach/demo/data/JdbcApplication.java renamed to roach-data-jdbc/src/main/java/io/roach/data/JdbcApplication.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.roach.demo.data;
1+
package io.roach.data;
22

33
import java.lang.annotation.*;
44
import java.lang.reflect.UndeclaredThrowableException;
@@ -511,7 +511,7 @@ class TransactionHintsAspect {
511511
@Autowired
512512
private JdbcTemplate jdbcTemplate;
513513

514-
private String applicationName = "roach-demo-data";
514+
private String applicationName = "roach-data";
515515

516516
@Pointcut("execution(* io.roach..*(..)) && @annotation(transactional)")
517517
public void anyTransactionBoundaryOperation(Transactional transactional) {
@@ -561,3 +561,4 @@ public Object setTimeTravelAttributes(ProceedingJoinPoint pjp, TimeTravel timeTr
561561
return pjp.proceed();
562562
}
563563
}
564+

jdbc/src/main/resources/application.yml renamed to roach-data-jdbc/src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spring:
1616
enabled: true
1717

1818
datasource:
19-
url: jdbc:postgresql://localhost:26257/roach_demo_data?sslmode=disable
19+
url: jdbc:postgresql://localhost:26257/roach_data?sslmode=disable
2020
driver-class-name: org.postgresql.Driver
2121
username: root
2222
password:
File renamed without changes.

0 commit comments

Comments
 (0)