Skip to content

Instantly share code, notes, and snippets.

@ndemengel
Created March 26, 2017 14:07
Show Gist options
  • Save ndemengel/72f362bc31afe5fcaa0499af8f269651 to your computer and use it in GitHub Desktop.
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
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