Advertisement
Guest User

Untitled

a guest
Mar 31st, 2015
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. class User {
  2. private String password;
  3.  
  4. //setter, getter..
  5. }
  6.  
  7. @JsonIgnore
  8. public String password;
  9.  
  10. @JsonIgnore
  11. public String getPassword() {
  12. return password;
  13. }
  14.  
  15. @JsonProperty
  16. public void setPassword(String password) {
  17. this.password = password;
  18. }
  19.  
  20. class User {
  21. private String password;
  22.  
  23. public void setPassword(String password){...}
  24. @JsonIgnore
  25. public String getPassword(){...}
  26.  
  27. @JsonProperty("password"}
  28. public String getEncryptedPassword(){...}
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement