Package com.Server.mapper.impl
Class RoleMapper
java.lang.Object
com.Server.mapper.impl.RoleMapper
- All Implemented Interfaces:
Mapper<Role,RoleResponse,RoleRequest>
@Component public class RoleMapper extends java.lang.Object implements Mapper<Role,RoleResponse,RoleRequest>
Class Mapper use to mapping Role.
- Since:
- 2020-04-27
- Version:
- 1.0
- Author:
- Krystian Cwioro Kamil Bieniasz Damian Mierzynski.
-
Constructor Summary
Constructors Constructor Description RoleMapper() -
Method Summary
Modifier and Type Method Description RoleResponsetoDto(Role role)RoletoEntity(RoleRequest roleRequest)Roleupdate(Role role, RoleRequest roleRequest)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
RoleMapper
public RoleMapper()
-
-
Method Details
-
toDto
- Specified by:
toDtoin interfaceMapper<Role,RoleResponse,RoleRequest>- Parameters:
role- param mapped to dto- Returns:
- dto object
-
toEntity
- Specified by:
toEntityin interfaceMapper<Role,RoleResponse,RoleRequest>- Parameters:
roleRequest- param mapped to entity- Returns:
- entity object
-
update
- Specified by:
updatein interfaceMapper<Role,RoleResponse,RoleRequest>- Parameters:
role- old paramroleRequest- new param- Returns:
- new localization object.
-