From 8816f3df49ac4421a805a8fb0e6b8fdd6bc05428 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 12 Jul 2020 14:43:33 +0200 Subject: [PATCH] WIP --- .../kafka/outbox => juplo/boot/data/jdbc}/Application.java | 2 +- .../de/{trion/kafka/outbox => juplo/boot/data/jdbc}/User.java | 2 +- .../kafka/outbox => juplo/boot/data/jdbc}/UserController.java | 2 +- .../kafka/outbox => juplo/boot/data/jdbc}/UserEvent.java | 2 +- .../kafka/outbox => juplo/boot/data/jdbc}/UserRepository.java | 3 +-- .../outbox => juplo/boot/data/jdbc}/ApplicationTests.java | 2 +- 6 files changed, 6 insertions(+), 7 deletions(-) rename src/main/java/de/{trion/kafka/outbox => juplo/boot/data/jdbc}/Application.java (92%) rename src/main/java/de/{trion/kafka/outbox => juplo/boot/data/jdbc}/User.java (93%) rename src/main/java/de/{trion/kafka/outbox => juplo/boot/data/jdbc}/UserController.java (98%) rename src/main/java/de/{trion/kafka/outbox => juplo/boot/data/jdbc}/UserEvent.java (79%) rename src/main/java/de/{trion/kafka/outbox => juplo/boot/data/jdbc}/UserRepository.java (82%) rename src/test/java/de/{trion/kafka/outbox => juplo/boot/data/jdbc}/ApplicationTests.java (90%) diff --git a/src/main/java/de/trion/kafka/outbox/Application.java b/src/main/java/de/juplo/boot/data/jdbc/Application.java similarity index 92% rename from src/main/java/de/trion/kafka/outbox/Application.java rename to src/main/java/de/juplo/boot/data/jdbc/Application.java index f6865f5..d7301e1 100644 --- a/src/main/java/de/trion/kafka/outbox/Application.java +++ b/src/main/java/de/juplo/boot/data/jdbc/Application.java @@ -1,4 +1,4 @@ -package de.trion.kafka.outbox; +package de.juplo.boot.data.jdbc; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/main/java/de/trion/kafka/outbox/User.java b/src/main/java/de/juplo/boot/data/jdbc/User.java similarity index 93% rename from src/main/java/de/trion/kafka/outbox/User.java rename to src/main/java/de/juplo/boot/data/jdbc/User.java index f4d1c8c..6d4d552 100644 --- a/src/main/java/de/trion/kafka/outbox/User.java +++ b/src/main/java/de/juplo/boot/data/jdbc/User.java @@ -1,4 +1,4 @@ -package de.trion.kafka.outbox; +package de.juplo.boot.data.jdbc; import lombok.*; import org.springframework.data.annotation.Id; diff --git a/src/main/java/de/trion/kafka/outbox/UserController.java b/src/main/java/de/juplo/boot/data/jdbc/UserController.java similarity index 98% rename from src/main/java/de/trion/kafka/outbox/UserController.java rename to src/main/java/de/juplo/boot/data/jdbc/UserController.java index 163e254..1ff11d8 100644 --- a/src/main/java/de/trion/kafka/outbox/UserController.java +++ b/src/main/java/de/juplo/boot/data/jdbc/UserController.java @@ -1,4 +1,4 @@ -package de.trion.kafka.outbox; +package de.juplo.boot.data.jdbc; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/main/java/de/trion/kafka/outbox/UserEvent.java b/src/main/java/de/juplo/boot/data/jdbc/UserEvent.java similarity index 79% rename from src/main/java/de/trion/kafka/outbox/UserEvent.java rename to src/main/java/de/juplo/boot/data/jdbc/UserEvent.java index d22106c..fd132c3 100644 --- a/src/main/java/de/trion/kafka/outbox/UserEvent.java +++ b/src/main/java/de/juplo/boot/data/jdbc/UserEvent.java @@ -1,4 +1,4 @@ -package de.trion.kafka.outbox; +package de.juplo.boot.data.jdbc; public class UserEvent { public enum Type { CREATED, LOGIN, LOGOUT, DELETED } diff --git a/src/main/java/de/trion/kafka/outbox/UserRepository.java b/src/main/java/de/juplo/boot/data/jdbc/UserRepository.java similarity index 82% rename from src/main/java/de/trion/kafka/outbox/UserRepository.java rename to src/main/java/de/juplo/boot/data/jdbc/UserRepository.java index 3437051..1d07359 100644 --- a/src/main/java/de/trion/kafka/outbox/UserRepository.java +++ b/src/main/java/de/juplo/boot/data/jdbc/UserRepository.java @@ -1,9 +1,8 @@ -package de.trion.kafka.outbox; +package de.juplo.boot.data.jdbc; import org.springframework.data.jdbc.repository.query.Query; import org.springframework.data.repository.CrudRepository; import org.springframework.data.repository.query.Param; -import org.springframework.jdbc.core.JdbcTemplate; public interface UserRepository extends CrudRepository { @Query("select * from User u where u.username = :username") diff --git a/src/test/java/de/trion/kafka/outbox/ApplicationTests.java b/src/test/java/de/juplo/boot/data/jdbc/ApplicationTests.java similarity index 90% rename from src/test/java/de/trion/kafka/outbox/ApplicationTests.java rename to src/test/java/de/juplo/boot/data/jdbc/ApplicationTests.java index 0962964..c77d5b7 100644 --- a/src/test/java/de/trion/kafka/outbox/ApplicationTests.java +++ b/src/test/java/de/juplo/boot/data/jdbc/ApplicationTests.java @@ -1,4 +1,4 @@ -package de.trion.kafka.outbox; +package de.juplo.boot.data.jdbc; import org.junit.Test; import org.junit.runner.RunWith; -- 2.20.1