Last active
December 5, 2020 20:52
-
-
Save ali-kamalizade/793d24375093f24dda097ac12a010231 to your computer and use it in GitHub Desktop.
A sample Java class which uses annotations provided by Project Lombok
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
package net.example.demo; | |
import com.fasterxml.jackson.annotation.JsonInclude; | |
import com.fasterxml.jackson.annotation.JsonInclude.Include; | |
import java.io.Serializable; | |
import lombok.AllArgsConstructor; | |
import lombok.Data; | |
import lombok.NoArgsConstructor; | |
@Data | |
@NoArgsConstructor | |
@AllArgsConstructor | |
@JsonInclude(Include.NON_NULL) | |
public class UserDataWithLombok implements Serializable { | |
List<String> permissions; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment