Created
June 17, 2017 11:52
-
-
Save khannedy/7bda66f2dfb9e634a8e827442ac05d0a to your computer and use it in GitHub Desktop.
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.blibli.kotlin.model.request; | |
import org.hibernate.validator.constraints.Length; | |
import org.hibernate.validator.constraints.NotBlank; | |
/** | |
* @author Eko Kurniawan Khannedy | |
*/ | |
public class PersonCreateRequestJava { | |
private String firstName; | |
private String lastName; | |
public PersonCreateRequestJava(@NotBlank @Length(max = 50) String firstName, | |
@Length(max = 50) String lastName) { | |
this.firstName = firstName; | |
this.lastName = lastName; | |
} | |
public String getFirstName() { | |
return firstName; | |
} | |
public String getLastName() { | |
return lastName; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment