Created
March 26, 2017 14:07
-
-
Save ndemengel/72f362bc31afe5fcaa0499af8f269651 to your computer and use it in GitHub Desktop.
Same as https://gist.github.com/ndemengel/77a8ffbb929bc55e3d87809820c1c5a4, without javac's -parameters option
This file contains 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
import lombok.*; | |
// The aim here is to have a type that looks like a value type, while still | |
// allowing Jackson to unmarshal our type from JSON. | |
// See https://gist.github.com/ndemengel/77a8ffbb929bc55e3d87809820c1c5a4 for a more elegant solution. | |
@AllArgsConstructor @Getter | |
@EqualsAndHashCode @ToString | |
@NoArgsConstructor(access = AccessLevel.PRIVATE) | |
public final class EmailUpdated implements Event<EmailUpdated> { | |
public static final String EXCHANGE_NAME = "email.updated.exchange"; | |
private String accountId; | |
private String oldEmail; | |
private String newEmail; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment