daily pastebin goal
53%
SHARE
TWEET

Untitled

a guest Nov 20th, 2017 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class MyDTO implements Serializable {
  2.     private static final long serialVersionUID = 1L;
  3.  
  4.     private String id;
  5.     private Map<String, String> names;
  6.  
  7.     // public Getters and Setters
  8. }
  9.    
  10. private static FieldDescriptor[] myDTOFields() {
  11.         return new FieldDescriptor[] { fieldWithPath("id").description("id description"), fieldWithPath("names").description("Names description") };
  12. }
  13.    
  14. {
  15.   "names" : {
  16.     "en" : "test"
  17.   }
  18. }
RAW Paste Data
Top