rename package name

This commit is contained in:
amit.pandey 2019-12-27 13:32:29 +05:30
parent 22a2020339
commit b3ec0955bb
15 changed files with 36 additions and 36 deletions

View File

@ -1,9 +0,0 @@
package com.baeldung.modelmapper.service;
import com.baeldung.modelmapper.model.User;
public interface IUserService {
User getCurrentUser();
}

View File

@ -1,9 +1,9 @@
package com.baeldung.modelmapper.controller;
package com.baeldung.springpagination.controller;
import com.baeldung.modelmapper.dto.PostDto;
import com.baeldung.modelmapper.model.Post;
import com.baeldung.modelmapper.service.IPostService;
import com.baeldung.modelmapper.service.IUserService;
import com.baeldung.springpagination.dto.PostDto;
import com.baeldung.springpagination.model.Post;
import com.baeldung.springpagination.service.IPostService;
import com.baeldung.springpagination.service.IUserService;
import org.modelmapper.ModelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;

View File

@ -1,4 +1,4 @@
package com.baeldung.modelmapper.dto;
package com.baeldung.springpagination.dto;
import java.text.ParseException;
import java.text.SimpleDateFormat;

View File

@ -1,4 +1,4 @@
package com.baeldung.modelmapper.dto;
package com.baeldung.springpagination.dto;
public class UserDto {

View File

@ -1,4 +1,4 @@
package com.baeldung.modelmapper.model;
package com.baeldung.springpagination.model;
import java.util.Date;

View File

@ -1,4 +1,4 @@
package com.baeldung.modelmapper.model;
package com.baeldung.springpagination.model;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;

View File

@ -1,4 +1,4 @@
package com.baeldung.modelmapper.model;
package com.baeldung.springpagination.model;
import javax.persistence.Column;
import javax.persistence.Entity;

View File

@ -1,4 +1,4 @@
package com.baeldung.modelmapper.model;
package com.baeldung.springpagination.model;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;

View File

@ -1,4 +1,4 @@
package com.baeldung.modelmapper.repository;
package com.baeldung.springpagination.repository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
@ -7,8 +7,8 @@ import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;
import com.baeldung.modelmapper.model.Post;
import com.baeldung.modelmapper.model.User;
import com.baeldung.springpagination.model.Post;
import com.baeldung.springpagination.model.User;
public interface PostRepository extends JpaRepository<Post, Long>, PagingAndSortingRepository<Post, Long> {

View File

@ -1,4 +1,4 @@
package com.baeldung.modelmapper.repository;
package com.baeldung.springpagination.repository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
@ -6,7 +6,7 @@ import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.data.rest.core.annotation.RestResource;
import com.baeldung.modelmapper.model.Subject;
import com.baeldung.springpagination.model.Subject;
public interface SubjectRepository extends PagingAndSortingRepository<Subject, Long> {

View File

@ -1,8 +1,8 @@
package com.baeldung.modelmapper.service;
package com.baeldung.springpagination.service;
import java.util.List;
import com.baeldung.modelmapper.model.Post;
import com.baeldung.springpagination.model.Post;
public interface IPostService {

View File

@ -0,0 +1,9 @@
package com.baeldung.springpagination.service;
import com.baeldung.springpagination.model.User;
public interface IUserService {
User getCurrentUser();
}

View File

@ -1,4 +1,4 @@
package com.baeldung.modelmapper.service;
package com.baeldung.springpagination.service;
import java.util.List;
@ -8,8 +8,8 @@ import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;
import com.baeldung.modelmapper.model.Post;
import com.baeldung.modelmapper.repository.PostRepository;
import com.baeldung.springpagination.model.Post;
import com.baeldung.springpagination.repository.PostRepository;
@Service
public class PostService implements IPostService {

View File

@ -1,9 +1,9 @@
package com.baeldung.modelmapper.service;
package com.baeldung.springpagination.service;
import org.springframework.stereotype.Service;
import com.baeldung.modelmapper.model.Preference;
import com.baeldung.modelmapper.model.User;
import com.baeldung.springpagination.model.Preference;
import com.baeldung.springpagination.model.User;
@Service
public class UserService implements IUserService {

View File

@ -1,12 +1,12 @@
package com.baeldung.modelmapper;
package com.baeldung.springpagination;
import static org.junit.Assert.assertEquals;
import static org.apache.commons.lang3.RandomStringUtils.randomAlphabetic;
import org.junit.Test;
import org.modelmapper.ModelMapper;
import com.baeldung.modelmapper.dto.PostDto;
import com.baeldung.modelmapper.model.Post;
import com.baeldung.springpagination.dto.PostDto;
import com.baeldung.springpagination.model.Post;
public class PostDtoUnitTest {