Guest User

Untitled

a guest
Nov 20th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment