Last active
April 12, 2016 23:46
-
-
Save yrashk/e0ed824009be0fa73958dd41958d8887 to your computer and use it in GitHub Desktop.
Pseudocode-ish User's email retrieval
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Pseudocode-ish User's email retrieval | |
public class User { | |
public String email() { | |
return query(equal(EmailChanged.ID, id), | |
descending(EmailChanged.TIMESTAMP)).first(). | |
email(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment