From: Kai Moritz Date: Sun, 12 Jul 2020 12:23:45 +0000 (+0200) Subject: WIP X-Git-Tag: wip-initial~11 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=f9711f81677916996ac9c118ca18ad97c29d7c83;p=demos%2Fkafka%2Foutbox WIP --- diff --git a/pom.xml b/pom.xml index 87706cd..e55601f 100644 --- a/pom.xml +++ b/pom.xml @@ -41,6 +41,10 @@ spring-boot-starter-json + + org.projectlombok + lombok + org.apache.kafka kafka-clients diff --git a/src/main/java/de/trion/kafka/outbox/User.java b/src/main/java/de/trion/kafka/outbox/User.java index ffb29bf..f4d1c8c 100644 --- a/src/main/java/de/trion/kafka/outbox/User.java +++ b/src/main/java/de/trion/kafka/outbox/User.java @@ -1,5 +1,6 @@ package de.trion.kafka.outbox; +import lombok.*; import org.springframework.data.annotation.Id; import java.time.LocalDateTime; @@ -7,8 +8,14 @@ import java.time.LocalDateTime; public class User { @Id Long id; + @Getter + @Setter String username; + @Getter + @Setter LocalDateTime created; + @Getter + @Setter boolean loggedIn; public User(String username, LocalDateTime created, boolean loggedIn) {