WIP
authorKai Moritz <kai@juplo.de>
Sun, 12 Jul 2020 12:23:45 +0000 (14:23 +0200)
committerKai Moritz <kai@juplo.de>
Sun, 12 Jul 2020 12:23:45 +0000 (14:23 +0200)
pom.xml
src/main/java/de/trion/kafka/outbox/User.java

diff --git a/pom.xml b/pom.xml
index 87706cd..e55601f 100644 (file)
--- a/pom.xml
+++ b/pom.xml
             <artifactId>spring-boot-starter-json</artifactId>
         </dependency>
 
+        <dependency>
+            <groupId>org.projectlombok</groupId>
+            <artifactId>lombok</artifactId>
+        </dependency>
         <dependency>
             <groupId>org.apache.kafka</groupId>
             <artifactId>kafka-clients</artifactId>
index ffb29bf..f4d1c8c 100644 (file)
@@ -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) {