Advertisement
Guest User

Untitled

a guest
Aug 24th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. @Entity("users")
  2. public class User{
  3.  
  4. private String username = null;
  5.  
  6. private String password = null;
  7. }
  8.  
  9. {
  10. "email": "xy@test.com",
  11. "password": "abc"
  12. }
  13.  
  14. {
  15. "usersettings": {
  16. "email": "xy@test.com",
  17. "password": [
  18. "abc", "cde", "efg"
  19. ]
  20. }
  21. }
  22.  
  23. @Entity("users")
  24. @Converters("MyUserConverter.class") <-- this does NOT WORK!
  25. public class User{
  26.  
  27. private String email = null;
  28.  
  29. private String password = null;
  30. }
  31.  
  32. @Entity("users")
  33.  
  34. public class User{
  35.  
  36. private String email = null;
  37.  
  38. @Converters("MyCustomTypeConverter.class") <-- this would work, but does not help in my case!
  39. private MyCustomType password = null;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement