Last active
November 3, 2021 22:51
-
-
Save kapresoft/496f1dad190333b9aab9d9bb090a4b83 to your computer and use it in GitHub Desktop.
Immutable BaseAccount using Lombok
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
package com.kapresoft.springboot.serializeimmutableobjects.dto.hierarchical; | |
import lombok.Getter; | |
@Getter | |
public abstract class BaseAccount { | |
String username; | |
String email; | |
BaseAccount(String username, String email) { | |
this.username = username; | |
this.email = email; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment