Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c72f59e

Browse files
committed
I don't know why. Just move on. (C) whatthecommit.com
1 parent 9a3572b commit c72f59e

File tree

8 files changed

+18
-8
lines changed

8 files changed

+18
-8
lines changed

‎.travis.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ jobs:
3232
- stage: test
3333
name: refs
3434
script: cd $TRAVIS_BUILD_DIR && ./mvnw -f refs
35+
- stage: test
36+
jdk: openjdk11
37+
name: many-to-many
38+
script: cd $TRAVIS_BUILD_DIR/one-to-many && ./mvnw
3539
- stage: test
3640
jdk: openjdk11
3741
name: many-to-many

‎ddd/src/main/java/com/github/daggerok/ddd/domain/Customer.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22

33
import com.github.daggerok.ddd.events.CustomerCreatedEvent;
44
import lombok.Value;
5+
import lombok.With;
56
import lombok.experimental.Wither;
67
import org.springframework.data.annotation.Id;
78
import org.springframework.data.domain.AbstractAggregateRoot;
89

910
import java.time.LocalDate;
1011

12+
@With
1113
@Value
12-
@Wither
1314
public class Customer extends AbstractAggregateRoot<Customer> {
1415

1516
@Id

‎many-to-many/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Please make a note of using Lombok and check [lombok.config](lombok.config) file.
55
* Check `db/migration/*.sql` files carefully, compare them with `Author`, `Message` and `AuthorRef` classes.
66
* Check tests as well...
7-
7+
88
## resources
99

1010
* [Spring Data JDBC object creation](https://docs.spring.io/spring-data/jdbc/docs/current/reference/html/#mapping.object-creation)

‎many-to-many/pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<modelVersion>4.0.0</modelVersion>
2929
<name>${project.artifactId}</name>
3030
<description>Simple Spring Data JDBC example</description>
31-
<artifactId>spring-data-jdbc-many-to-many</artifactId>
31+
<artifactId>many-to-many</artifactId>
3232

3333
<properties>
3434
<java.version>1.8</java.version>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.example.springdatajdbcmanytomany;
1+
package com.example.springdatajdbconetomany;
22

33
import com.fasterxml.jackson.annotation.JsonIgnore;
44
import lombok.*;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.example.springdatajdbcmanytomany;
1+
package com.example.springdatajdbconetomany;
22

33
import lombok.AllArgsConstructor;
44
import lombok.extern.log4j.Log4j2;

‎pom.xml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212

1313
<modules>
1414
<module>h2</module>
15-
<module>simple</module>
1615
<module>ddd</module>
16+
<module>simple</module>
1717
<module>spring-boot-2-2</module>
1818
<module>many-to-many</module>
19+
<module>one-to-many</module>
1920
<module>refs</module>
2021
</modules>
2122

@@ -101,6 +102,10 @@
101102
<groupId>org.jetbrains.kotlin</groupId>
102103
<artifactId>kotlin-stdlib-jdk8</artifactId>
103104
</dependency>
105+
<dependency>
106+
<groupId>com.fasterxml.jackson.module</groupId>
107+
<artifactId>jackson-module-kotlin</artifactId>
108+
</dependency>
104109

105110
<dependency>
106111
<groupId>com.h2database</groupId>

‎simple/src/main/java/com/github/daggerok/simple/Customer.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import lombok.EqualsAndHashCode;
44
import lombok.Value;
5-
import lombok.experimental.Wither;
5+
import lombok.With;
66
import org.springframework.data.annotation.Id;
77

88
import java.time.LocalDate;
@@ -14,8 +14,8 @@
1414
//@AllArgsConstructor
1515
//@EqualsAndHashCode(exclude = "id")
1616

17+
@With
1718
@Value
18-
@Wither
1919
@EqualsAndHashCode(exclude = "id")
2020
class Customer {
2121

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /