KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Using Play Framework, I serialize my models via GSON. I specify which fields are exposed and which aren't. This works great but I'd also like to @expose method too. Of course, this is too simple. How can I do it ? Thanks for your help ! public class Account extends Model { @Expose public String username; @Expose public String email; public String password; @Expose // Of course, this don't work public String getEncodedPassword() { // ... } }
Tags (comma-separated)
Save Edits
Cancel