Search in sources :

Example 71 with ModelMapper

use of org.modelmapper.ModelMapper in project catalogo-strumenti by istat-methodology.

the class Translators method translateUpdate.

public static SoftwareProcedure translateUpdate(CreateSoftwareProcedureRequest x, SoftwareProcedure sp) {
    final ModelMapper modelMapper = new ModelMapper();
    modelMapper.map(x, sp);
    return sp;
}
Also used : ModelMapper(org.modelmapper.ModelMapper)

Example 72 with ModelMapper

use of org.modelmapper.ModelMapper in project catalogo-strumenti by istat-methodology.

the class Translators method translateUpdate.

public static StatisticalMethod translateUpdate(CreateStatisticalMethodRequest x, StatisticalMethod sm) {
    final ModelMapper modelMapper = new ModelMapper();
    modelMapper.map(x, sm);
    return sm;
}
Also used : ModelMapper(org.modelmapper.ModelMapper)

Example 73 with ModelMapper

use of org.modelmapper.ModelMapper in project catalogo-strumenti by istat-methodology.

the class Translators method translateUpdate.

public static CatalogTool translateUpdate(UpdateToolRequest x, CatalogTool tool) {
    final ModelMapper modelMapper = new ModelMapper();
    modelMapper.map(x, tool);
    return tool;
}
Also used : ModelMapper(org.modelmapper.ModelMapper)

Example 74 with ModelMapper

use of org.modelmapper.ModelMapper in project catalogo-strumenti by istat-methodology.

the class Translators method translateUpdate.

public static DesktopApplication translateUpdate(CreateDesktopApplicationRequest x, DesktopApplication da) {
    final ModelMapper modelMapper = new ModelMapper();
    modelMapper.map(x, da);
    return da;
}
Also used : ModelMapper(org.modelmapper.ModelMapper)

Example 75 with ModelMapper

use of org.modelmapper.ModelMapper in project catalogo-strumenti by istat-methodology.

the class Translators method translate.

public static UsersEntity translate(CreateUserRequest x) {
    final ModelMapper modelMapper = new ModelMapper();
    final UsersEntity user = modelMapper.map(x, UsersEntity.class);
    return user;
}
Also used : UsersEntity(it.istat.mec.users.domain.UsersEntity) ModelMapper(org.modelmapper.ModelMapper)

Aggregations

ModelMapper (org.modelmapper.ModelMapper)185 Bean (org.springframework.context.annotation.Bean)35 ArrayList (java.util.ArrayList)18 Date (java.util.Date)6 LocalDate (java.time.LocalDate)5 List (java.util.List)5 Map (java.util.Map)5 Optional (java.util.Optional)5 Actor (com.management.entities.Actor)4 CinemaTheatre (com.management.entities.CinemaTheatre)4 Event (com.management.entities.Event)4 Performance (com.management.entities.Performance)4 Props (com.management.entities.Props)4 User (com.management.entities.User)4 Collectors (java.util.stream.Collectors)4 PutMessageRequestType (no.difi.meldingsutveksling.noarkexchange.schema.PutMessageRequestType)4 Autowired (org.springframework.beans.factory.annotation.Autowired)4 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)3 Actorperformances (com.management.entities.Actorperformances)3 FanZone (com.management.entities.FanZone)3