SHARE
TWEET

Untitled

a guest Jun 19th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class PlayerDto {
  2.  
  3.     private Long id;
  4.     private String name;
  5.     private String past;
  6.  
  7. }
  8.      
  9. public class Player {
  10.  
  11.     private Long id;
  12.     private String name;
  13.     private List<String> past;
  14.  
  15. }
  16.      
  17. @Mappings({
  18.             @Mapping(target = "past", source = "past"),
  19. })
  20. PlayerDto entityToDto(final Player entity);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top