Change package to com.baeldung

This commit is contained in:
Alex Theedom
2016-09-02 00:00:43 +01:00
parent c14c66167e
commit 335770683c
12 changed files with 28 additions and 77 deletions
@@ -1,4 +1,4 @@
package org.baeldung.dto;
package com.baeldung.dto;
public class DivisionDTO {
@@ -1,4 +1,4 @@
package org.baeldung.dto;
package com.baeldung.dto;
public class EmployeeDTO {
@@ -1,4 +1,4 @@
package org.baeldung.dto;
package com.baeldung.dto;
public class SimpleSource {
@@ -1,4 +1,4 @@
package org.baeldung.entity;
package com.baeldung.entity;
public class Division {
@@ -1,4 +1,4 @@
package org.baeldung.entity;
package com.baeldung.entity;
import java.util.Date;
@@ -1,4 +1,4 @@
package org.baeldung.entity;
package com.baeldung.entity;
public class SimpleDestination {
@@ -1,15 +1,15 @@
package org.baeldung.mapper;
package com.baeldung.mapper;
import java.util.List;
import org.baeldung.dto.DivisionDTO;
import org.baeldung.dto.EmployeeDTO;
import org.baeldung.entity.Division;
import org.baeldung.entity.Employee;
import com.baeldung.dto.DivisionDTO;
import com.baeldung.dto.EmployeeDTO;
import com.baeldung.entity.Division;
import com.baeldung.entity.Employee;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import java.util.List;
@Mapper
public interface EmployeeMapper {
@@ -1,7 +1,7 @@
package org.baeldung.mapper;
package com.baeldung.mapper;
import org.baeldung.dto.SimpleSource;
import org.baeldung.entity.SimpleDestination;
import com.baeldung.dto.SimpleSource;
import com.baeldung.entity.SimpleDestination;
import org.mapstruct.Mapper;
@Mapper(componentModel = "spring")
@@ -10,6 +10,6 @@
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop.xsd">
<context:component-scan base-package="org.baeldung" />
<context:component-scan base-package="com.baeldung" />
</beans>
@@ -1,6 +1,11 @@
package org.baeldung.mapper;
package com.baeldung.mapper;
import static org.junit.Assert.assertEquals;
import com.baeldung.dto.DivisionDTO;
import com.baeldung.dto.EmployeeDTO;
import com.baeldung.entity.Division;
import com.baeldung.entity.Employee;
import org.junit.Test;
import org.mapstruct.factory.Mappers;
import java.text.ParseException;
import java.text.SimpleDateFormat;
@@ -8,12 +13,7 @@ import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.baeldung.dto.DivisionDTO;
import org.baeldung.dto.EmployeeDTO;
import org.baeldung.entity.Division;
import org.baeldung.entity.Employee;
import org.junit.Test;
import org.mapstruct.factory.Mappers;
import static org.junit.Assert.assertEquals;
public class EmployeeMapperTest {
@@ -1,9 +1,9 @@
package org.baeldung.mapper;
package com.baeldung.mapper;
import static org.junit.Assert.assertEquals;
import org.baeldung.dto.SimpleSource;
import org.baeldung.entity.SimpleDestination;
import com.baeldung.dto.SimpleSource;
import com.baeldung.entity.SimpleDestination;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;