Skip to content

Instantly share code, notes, and snippets.

@khannedy
Created June 17, 2017 11:52
Show Gist options
  • Save khannedy/7bda66f2dfb9e634a8e827442ac05d0a to your computer and use it in GitHub Desktop.
Save khannedy/7bda66f2dfb9e634a8e827442ac05d0a to your computer and use it in GitHub Desktop.
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