Created
July 4, 2017 09:35
-
-
Save circlee/a4e519ade09cd073ba8a69ade60b026b to your computer and use it in GitHub Desktop.
SampleDTO
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 java.io.Serializable; | |
import javax.validation.constraints.NotNull; | |
import javax.validation.constraints.Size; | |
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; | |
import lombok.Data; | |
public @Data class SampleDTO implements Serializable { | |
/** | |
* | |
*/ | |
private static final long serialVersionUID = -7739157376476624383L; | |
private Long shipperId; | |
@JsonDeserialize(using = XssStringDeserializer.class) | |
private String name; | |
private String contact; | |
private String homepageUrl; | |
private String mobileUrl; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment