changes in build pom.xml

This commit is contained in:
Sasa M 2020-04-21 22:26:22 +02:00
parent d1b282220d
commit 32d1cc8a13
8 changed files with 16 additions and 9 deletions

View File

@ -10,7 +10,7 @@ import java.util.List;
* This is a helper class that contains methods for generic mapping of the users list. * This is a helper class that contains methods for generic mapping of the users list.
* Initially, an instance of ModelMapper was created. In the static block we set the matching configuration to STRICT. * Initially, an instance of ModelMapper was created. In the static block we set the matching configuration to STRICT.
* *
* @author sasam0320 * @author Sasa Milenkovic
*/ */
public class MapperUtil { public class MapperUtil {

View File

@ -2,7 +2,8 @@ package com.baeldung.modelmapper;
/** /**
* User model entity class * User model entity class
* @author sasam0320 *
* @author Sasa Milenkovic
*/ */
public class User { public class User {
@ -14,7 +15,8 @@ public class User {
// Standard constructors, getters and setters // Standard constructors, getters and setters
public User(){} public User() {
}
public User(String userId, String userName, String email, String contactNumber, String userType) { public User(String userId, String userName, String email, String contactNumber, String userType) {
this.userId = userId; this.userId = userId;

View File

@ -2,7 +2,8 @@ package com.baeldung.modelmapper;
/** /**
* UserDTO model class * UserDTO model class
* @author sasam0320 *
* @author Sasa Milenkovic
*/ */
public class UserDTO { public class UserDTO {

View File

@ -4,7 +4,8 @@ import java.util.Collection;
/** /**
* UserList class that contain collection of users * UserList class that contain collection of users
* @author sasam0320 *
* @author Sasa Milenkovic
*/ */
public class UserList { public class UserList {

View File

@ -4,7 +4,8 @@ import java.util.List;
/** /**
* UserListDTO class that contain list of username properties * UserListDTO class that contain list of username properties
* @author sasam0320 *
* @author Sasa Milenkovic
*/ */
public class UserListDTO { public class UserListDTO {

View File

@ -3,13 +3,15 @@ package com.baeldung.modelmapper;
import org.modelmapper.AbstractConverter; import org.modelmapper.AbstractConverter;
import org.modelmapper.Converter; import org.modelmapper.Converter;
import org.modelmapper.PropertyMap; import org.modelmapper.PropertyMap;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
/** /**
* UserPropertyMap class instantiates the converter to map the data from the user list to the user name list. * UserPropertyMap class instantiates the converter to map the data from the user list to the user name list.
* In the configuration method, we call a converter to do the mapping. * In the configuration method, we call a converter to do the mapping.
* @author sasam0320 *
* @author Sasa Milenkovic
*/ */
public class UserPropertyMap extends PropertyMap<UserList, UserListDTO> { public class UserPropertyMap extends PropertyMap<UserList, UserListDTO> {

View File

@ -21,7 +21,7 @@ import static org.junit.Assert.assertThat;
* This class has test methods of mapping Integer to Character list, * This class has test methods of mapping Integer to Character list,
* mapping user list to DTO list using MapperUtil generic methods and Converter * mapping user list to DTO list using MapperUtil generic methods and Converter
* *
* @author sasam0320 * @author Sasa Milenkovic
*/ */
public class UsersListMappingUnitTest { public class UsersListMappingUnitTest {

View File

@ -45,7 +45,7 @@
<guava.version>23.0</guava.version> <guava.version>23.0</guava.version>
<commons.io.version>2.6</commons.io.version> <commons.io.version>2.6</commons.io.version>
<jmh.version>1.19</jmh.version> <jmh.version>1.19</jmh.version>
<modelmapper.version>2.3.6</modelmapper.version> <modelmapper.version>2.3.7</modelmapper.version>
<junit.version>4.12</junit.version> <junit.version>4.12</junit.version>
<hamcrest.version>1.3</hamcrest.version> <hamcrest.version>1.3</hamcrest.version>
</properties> </properties>