From f4b5f8b1f7b5e652321c7524b3141c56d48768cf Mon Sep 17 00:00:00 2001 From: ard333 Date: Sun, 13 May 2018 21:20:54 +0700 Subject: [PATCH] package refactoring --- .../ard/springbootwebfluxjjwt/{entity => model}/Message.java | 2 +- .../web/ard/springbootwebfluxjjwt/{entity => model}/User.java | 2 +- .../id/web/ard/springbootwebfluxjjwt/rest/ResourceREST.java | 2 +- .../java/id/web/ard/springbootwebfluxjjwt/security/JWTUtil.java | 2 +- .../id/web/ard/springbootwebfluxjjwt/service/UserService.java | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) rename src/main/java/id/web/ard/springbootwebfluxjjwt/{entity => model}/Message.java (85%) rename src/main/java/id/web/ard/springbootwebfluxjjwt/{entity => model}/User.java (97%) diff --git a/src/main/java/id/web/ard/springbootwebfluxjjwt/entity/Message.java b/src/main/java/id/web/ard/springbootwebfluxjjwt/model/Message.java similarity index 85% rename from src/main/java/id/web/ard/springbootwebfluxjjwt/entity/Message.java rename to src/main/java/id/web/ard/springbootwebfluxjjwt/model/Message.java index 3a71c76..fe2e9af 100644 --- a/src/main/java/id/web/ard/springbootwebfluxjjwt/entity/Message.java +++ b/src/main/java/id/web/ard/springbootwebfluxjjwt/model/Message.java @@ -2,7 +2,7 @@ * Ardiansyah | http://ard.web.id * */ -package id.web.ard.springbootwebfluxjjwt.entity; +package id.web.ard.springbootwebfluxjjwt.model; import lombok.AllArgsConstructor; import lombok.Data; diff --git a/src/main/java/id/web/ard/springbootwebfluxjjwt/entity/User.java b/src/main/java/id/web/ard/springbootwebfluxjjwt/model/User.java similarity index 97% rename from src/main/java/id/web/ard/springbootwebfluxjjwt/entity/User.java rename to src/main/java/id/web/ard/springbootwebfluxjjwt/model/User.java index b2ddf7e..2f2c10a 100644 --- a/src/main/java/id/web/ard/springbootwebfluxjjwt/entity/User.java +++ b/src/main/java/id/web/ard/springbootwebfluxjjwt/model/User.java @@ -2,7 +2,7 @@ * Ardiansyah | http://ard.web.id * */ -package id.web.ard.springbootwebfluxjjwt.entity; +package id.web.ard.springbootwebfluxjjwt.model; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/id/web/ard/springbootwebfluxjjwt/rest/ResourceREST.java b/src/main/java/id/web/ard/springbootwebfluxjjwt/rest/ResourceREST.java index 5f55b7f..487d1e3 100644 --- a/src/main/java/id/web/ard/springbootwebfluxjjwt/rest/ResourceREST.java +++ b/src/main/java/id/web/ard/springbootwebfluxjjwt/rest/ResourceREST.java @@ -4,7 +4,7 @@ */ package id.web.ard.springbootwebfluxjjwt.rest; -import id.web.ard.springbootwebfluxjjwt.entity.Message; +import id.web.ard.springbootwebfluxjjwt.model.Message; import org.springframework.http.ResponseEntity; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.RequestMapping; diff --git a/src/main/java/id/web/ard/springbootwebfluxjjwt/security/JWTUtil.java b/src/main/java/id/web/ard/springbootwebfluxjjwt/security/JWTUtil.java index 5206f77..1426ef4 100644 --- a/src/main/java/id/web/ard/springbootwebfluxjjwt/security/JWTUtil.java +++ b/src/main/java/id/web/ard/springbootwebfluxjjwt/security/JWTUtil.java @@ -4,7 +4,7 @@ */ package id.web.ard.springbootwebfluxjjwt.security; -import id.web.ard.springbootwebfluxjjwt.entity.User; +import id.web.ard.springbootwebfluxjjwt.model.User; import java.io.Serializable; import java.util.Date; import java.util.HashMap; diff --git a/src/main/java/id/web/ard/springbootwebfluxjjwt/service/UserService.java b/src/main/java/id/web/ard/springbootwebfluxjjwt/service/UserService.java index c76f049..210b672 100644 --- a/src/main/java/id/web/ard/springbootwebfluxjjwt/service/UserService.java +++ b/src/main/java/id/web/ard/springbootwebfluxjjwt/service/UserService.java @@ -4,7 +4,7 @@ */ package id.web.ard.springbootwebfluxjjwt.service; -import id.web.ard.springbootwebfluxjjwt.entity.User; +import id.web.ard.springbootwebfluxjjwt.model.User; import id.web.ard.springbootwebfluxjjwt.security.model.Role; import java.util.Arrays; import org.springframework.security.core.userdetails.UserDetails;